mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 10:46:22 +00:00
Update to pinejs-client-js v0.3.1
This commit is contained in:
parent
fe05824429
commit
df536f672f
@ -21,7 +21,7 @@
|
||||
"ping": "0.1.8",
|
||||
"pubnub": "~3.6.4",
|
||||
"request": "~2.22.0",
|
||||
"resin-platform-api": "git+ssh://git@bitbucket.org:rulemotion/resin-platform-api.git#v0.2.7",
|
||||
"pinejs-client-js": "git+ssh://git@bitbucket.org:rulemotion/pinejs-client-js.git#v0.3.1",
|
||||
"sqlite3": "~2.1.19",
|
||||
"tty.js": "~0.2.13",
|
||||
"typed-error": "~0.1.0"
|
||||
|
@ -7,7 +7,7 @@ config = require './config'
|
||||
dockerUtils = require './docker-utils'
|
||||
PUBNUB = require 'pubnub'
|
||||
Promise = require 'bluebird'
|
||||
PlatformAPI = require 'resin-platform-api/request'
|
||||
PlatformAPI = require 'pinejs-client-js/request'
|
||||
utils = require './utils'
|
||||
tty = require './lib/tty'
|
||||
|
||||
@ -197,7 +197,8 @@ exports.update = update = ->
|
||||
'commit'
|
||||
]
|
||||
filter:
|
||||
'device/uuid': uuid
|
||||
device:
|
||||
uuid: uuid
|
||||
customOptions:
|
||||
apikey: apiKey
|
||||
)
|
||||
|
@ -5,7 +5,7 @@ knex = require './db'
|
||||
utils = require './utils'
|
||||
crypto = require 'crypto'
|
||||
config = require './config'
|
||||
PlatformAPI = require 'resin-platform-api/request'
|
||||
PlatformAPI = require 'pinejs-client-js/request'
|
||||
vpn = require './lib/vpn'
|
||||
|
||||
PLATFORM_ENDPOINT = url.resolve(config.apiEndpoint, '/ewa/')
|
||||
@ -26,7 +26,7 @@ registerDevice = (apiKey, userId, applicationId, deviceType, uuid) ->
|
||||
user: userId
|
||||
application: applicationId
|
||||
uuid: uuid
|
||||
'device_type': deviceType
|
||||
device_type: deviceType
|
||||
customOptions:
|
||||
apikey: apiKey
|
||||
).then ->
|
||||
|
Loading…
Reference in New Issue
Block a user