Add case-insensitive checking for application names in balena push

The filter is added with an `as any`, as the typings dont yet support
using $eq and $ne.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
This commit is contained in:
Cameron Diver 2018-11-15 09:26:25 +00:00
parent fd580083d5
commit 6ad4598e7e
No known key found for this signature in database
GPG Key ID: 69264F9C923F55C1
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ async function getAppOwner(sdk: BalenaSDK, appName: string) {
},
},
$filter: {
app_name: appName,
$eq: [{ $tolower: { $: 'app_name' } }, appName.toLowerCase()],
},
$select: ['id'],
});

View File

@ -106,7 +106,7 @@
"balena-device-init": "^5.0.0",
"balena-image-manager": "^6.0.0",
"balena-preload": "^8.0.0",
"balena-sdk": "^11.0.0",
"balena-sdk": "^11.2.0",
"balena-settings-client": "^4.0.0",
"balena-sync": "^10.0.0",
"bash": "0.0.1",