Skip to content

Commit

Permalink
Fix token used for marking job as processed
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Gordon committed Sep 21, 2021
1 parent 5f7342f commit f98fb75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class ApiClient {
async markJobAsProcessed(): Promise<void> {
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}`)
Expand Down

0 comments on commit f98fb75

Please sign in to comment.