From 7e60670ffcf4dd4108e79ecc4716faeaf17e783a Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Thu, 25 Jan 2024 15:27:02 -0500 Subject: [PATCH] fix(deno): Call function if client is not setup --- packages/deno/src/integrations/deno-cron.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/deno/src/integrations/deno-cron.ts b/packages/deno/src/integrations/deno-cron.ts index 3b337b004405..a524b927acca 100644 --- a/packages/deno/src/integrations/deno-cron.ts +++ b/packages/deno/src/integrations/deno-cron.ts @@ -37,8 +37,8 @@ const denoCronIntegration = (() => { } async function cronCalled(): Promise { - if (SETUP_CLIENTS.has(getClient() as Client)) { - return; + if (!SETUP_CLIENTS.has(getClient() as Client)) { + return fn(); } await withMonitor(monitorSlug, async () => fn(), {