mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-31 06:41:05 +00:00
Fix typo passing apiKey to the resin API client when exchanging apikeys
Change-Type: patch Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
This commit is contained in:
parent
7e342e9d80
commit
75ce55e932
@ -103,13 +103,15 @@ module.exports = class APIBinder
|
||||
return null
|
||||
|
||||
fetchDevice: (uuid, apiKey, timeout) =>
|
||||
@resinApi.get
|
||||
reqOpts = {
|
||||
resource: 'device'
|
||||
options:
|
||||
filter:
|
||||
uuid: uuid
|
||||
passthrough:
|
||||
headers: Authorization: "Bearer: #{apiKey}"
|
||||
headers: Authorization: "Bearer #{apiKey}"
|
||||
}
|
||||
@resinApi.get(reqOpts)
|
||||
.get(0)
|
||||
.catchReturn(null)
|
||||
.timeout(timeout)
|
||||
|
Loading…
x
Reference in New Issue
Block a user