Skip to content

Commit

Permalink
Unregister
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Mar 8, 2024
1 parent 49e25d0 commit 8a49b57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/jobs/src/transactions/sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ client.defineJob({
if (error) {
await io.logger.error("Accounts Error", error);
// TODO: Remove
await scheduler.unregister(ctx.source.id);
const event = await scheduler.unregister(ctx.source.id);

await io.logger.debug("Unregister", event);
}

const promises = accountsData?.map(async (account) => {
Expand Down

0 comments on commit 8a49b57

Please sign in to comment.