Skip to content

Commit

Permalink
Bump balena-sdk to latest
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
otaviojacobi authored and ab77 committed Jan 2, 2024
1 parent b8b3f33 commit 0a988ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ const reapDevices = async (addresses: string[], deviceTld?: string) => {
for (const address of addresses) {
// Query the SDK using the Proxy service key for *all* current devices
try {
const devices = await balena.models.device.getAll();
const devices = await balena.pine.get({
resource: 'device',
options: {$orderby: 'device_name asc'}
}) as BalenaSdk.Device[];

// Get list of all accessible devices
const newAccessible = _.filter(
Expand Down Expand Up @@ -193,7 +196,7 @@ const MDNSHosts = process.env.MDNS_SUBDOMAINS
? process.env.MDNS_SUBDOMAINS.split(',')
: [];

const balena = BalenaSdk({
const balena = BalenaSdk.getSdk({
apiUrl: `https://${process.env.API_HOST}/`,
});

Expand Down

0 comments on commit 0a988ed

Please sign in to comment.