From f98fb75b803ec4fac0e859edf7f95b59f6adb5ee Mon Sep 17 00:00:00 2001 From: Barry Gordon Date: Mon, 20 Sep 2021 11:51:47 +0100 Subject: [PATCH] Fix token used for marking job as processed --- src/api-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-client.ts b/src/api-client.ts index 9f1186d..5bdc056 100644 --- a/src/api-client.ts +++ b/src/api-client.ts @@ -78,7 +78,7 @@ export class ApiClient { async markJobAsProcessed(): Promise { const markAsProcessedURL = `/update_jobs/${this.params.jobId}/mark_as_processed` const res = await this.client.get(markAsProcessedURL, { - headers: {Authorization: this.params.credentialsToken} + headers: {Authorization: this.params.jobToken} }) if (res.status !== 200) { throw new Error(`Unexpected status code: ${res.status}`)