Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix(worker): return any thing so cachable cache the request

Carl-Gerhard Lindesvärd75846f0f90f8
diff --git a/apps/worker/src/jobs/sessions.ts b/apps/worker/src/jobs/sessions.ts
index b3387fd3f..84b35cbb4 100644
--- a/apps/worker/src/jobs/sessions.ts
+++ b/apps/worker/src/jobs/sessions.ts
@@ -6,7 +6,6 @@ import { logger } from '@/utils/logger';
import {
db,
getOrganizationBillingEventsCount,
- getOrganizationByProjectIdCached,
getProjectEventsCount,
} from '@openpanel/db';
import { cacheable } from '@openpanel/redis';
@@ -76,4 +75,6 @@ const updateEventsCount = cacheable(async function updateEventsCount(
},
});
}
+
+ return true;
}, 60 * 60);