mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-06-01 15:20:51 +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
|
return null
|
||||||
|
|
||||||
fetchDevice: (uuid, apiKey, timeout) =>
|
fetchDevice: (uuid, apiKey, timeout) =>
|
||||||
@resinApi.get
|
reqOpts = {
|
||||||
resource: 'device'
|
resource: 'device'
|
||||||
options:
|
options:
|
||||||
filter:
|
filter:
|
||||||
uuid: uuid
|
uuid: uuid
|
||||||
passthrough:
|
passthrough:
|
||||||
headers: Authorization: "Bearer: #{apiKey}"
|
headers: Authorization: "Bearer #{apiKey}"
|
||||||
|
}
|
||||||
|
@resinApi.get(reqOpts)
|
||||||
.get(0)
|
.get(0)
|
||||||
.catchReturn(null)
|
.catchReturn(null)
|
||||||
.timeout(timeout)
|
.timeout(timeout)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user