Skip to content

Commit

Permalink
fix: fix task running bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jessie129j committed Oct 20, 2024
1 parent ae4765c commit 9449b7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/tasks/syncPaymentCancellations.task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class SyncPaymentCancellationTask {
);
} finally {
if (this.failedCnt < 10) {
setTimeout(this.run, 60000);
setTimeout(this.run.bind(this), 60000);
}
}
}
Expand Down

0 comments on commit 9449b7c

Please sign in to comment.