Skip to content

Commit

Permalink
Bugfix for cancel request method (#135)
Browse files Browse the repository at this point in the history
get -> delete
  • Loading branch information
rossdowthwaite authored Jun 28, 2024
1 parent 45067f5 commit 05e06de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpr/data/restClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export default class RestClient {
logger.info(`Get using user credentials: calling ${this.name}: ${this.config.url}${path} ${JSON.stringify(query)}`)
try {
const result = await superagent
.get(`${this.apiUrl()}${path}`)
.delete(`${this.apiUrl()}${path}`)
.agent(this.agent)
.retry(2, (err) => {
if (err) logger.info(`Retry handler found API error with ${err.code} ${err.message}`)
Expand Down

0 comments on commit 05e06de

Please sign in to comment.