Skip to content

Commit e0869ab

Browse files
authored
fix(deno): Call function if client is not setup (#10354)
I think this conditional needs to still call the deno cron `fn()`, and that we should do an early return if the client is **not** on `SETUP_CLIENTS`
1 parent bd8d8bb commit e0869ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/deno/src/integrations/deno-cron.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const denoCronIntegration = (() => {
3737
}
3838

3939
async function cronCalled(): Promise<void> {
40-
if (SETUP_CLIENTS.has(getClient() as Client)) {
41-
return;
40+
if (!SETUP_CLIENTS.has(getClient() as Client)) {
41+
return fn();
4242
}
4343

4444
await withMonitor(monitorSlug, async () => fn(), {

0 commit comments

Comments
 (0)