Merge pull request #864 from balena-io/fix-bound-lambda

Fix context bind errors by switching to async/await
This commit is contained in:
CameronDiver 2019-01-08 16:53:55 +00:00 committed by GitHub
commit 5146b53d94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -543,7 +543,8 @@ export class APIBinder {
++this.targetStateFetchErrors; ++this.targetStateFetchErrors;
} }
return Bluebird.delay(pollInterval).then(this.pollTargetState); await Bluebird.delay(pollInterval);
await this.pollTargetState();
} }
private async pinDevice({ app, commit }: DevicePinInfo) { private async pinDevice({ app, commit }: DevicePinInfo) {