From 8a49b573ff7e43870d17ae8897d0faf073ad1268 Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Fri, 8 Mar 2024 13:01:17 +0100 Subject: [PATCH] Unregister --- packages/jobs/src/transactions/sync.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/jobs/src/transactions/sync.ts b/packages/jobs/src/transactions/sync.ts index 553e2ecc45..74f5a217c9 100644 --- a/packages/jobs/src/transactions/sync.ts +++ b/packages/jobs/src/transactions/sync.ts @@ -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) => {