Merge pull request #1426 from balena-io/fix-device-tags-endpoint

Fix device-tag fetching function
This commit is contained in:
bulldozer-balena[bot] 2020-08-05 13:18:08 +00:00 committed by GitHub
commit 6363fd3562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,9 +344,9 @@ export class APIBinder {
}
const tags = (await this.balenaApi.get({
resource: 'device_tag',
id: deviceId,
options: {
$select: ['id', 'tag_key', 'value'],
$filter: { device: deviceId },
},
})) as Array<Dictionary<unknown>>;