mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-23 15:32:24 +00:00
Switch to balenaApi for the state patch as patching cannot be cached
Change-type: patch
This commit is contained in:
parent
5f35331633
commit
fb90042c39
@ -456,7 +456,7 @@ export class APIBinder {
|
||||
stateDiff: DeviceStatus,
|
||||
conf: { apiEndpoint: string; uuid: string; localMode: boolean },
|
||||
) {
|
||||
if (this.cachedBalenaApi == null) {
|
||||
if (this.balenaApi == null) {
|
||||
throw new InternalInconsistencyError(
|
||||
'Attempt to send report patch without an API client',
|
||||
);
|
||||
@ -483,10 +483,10 @@ export class APIBinder {
|
||||
url: endpoint,
|
||||
body,
|
||||
},
|
||||
this.cachedBalenaApi.passthrough,
|
||||
this.balenaApi.passthrough,
|
||||
);
|
||||
|
||||
await this.cachedBalenaApi._request(requestParams);
|
||||
await this.balenaApi._request(requestParams);
|
||||
}
|
||||
|
||||
// Returns an object that contains only status fields relevant for the local mode.
|
||||
|
Loading…
Reference in New Issue
Block a user