Update to pinejs-client-js v0.3.1

This commit is contained in:
Pagan Gazzard 2014-12-24 15:39:57 +00:00 committed by Pablo Carranza Vélez
parent fe05824429
commit df536f672f
3 changed files with 6 additions and 5 deletions

View File

@ -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"

View File

@ -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
)

View File

@ -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 ->