Skip to content

Commit

Permalink
🐛 Fix invalid method for cancel job
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronleopold committed Dec 18, 2024
1 parent 638fafd commit 2ee79fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/controllers/job-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class JobAPI extends APIBase {
* Cancel a job by its ID
*/
async cancel(id: string): Promise<void> {
await this.axios.post(jobURL(`${id}/cancel`))
await this.axios.delete(jobURL(`${id}/cancel`))
}

/**
Expand Down

0 comments on commit 2ee79fe

Please sign in to comment.