fix(analytics): restrict publishing to every week (#5028)

This commit is contained in:
Meier Lukas authored and GitHub committed 2026-02-20 17:44:02 +01:00
1 parent 24560cb93f
commit 8c4be2fbe8
5 files changed
+34 -10

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ import { createCronJob } from "../lib";
export const analyticsJob = createCronJob("analytics", EVERY_WEEK, {
runOnStart: true,
preventManualExecution: true,
preventCustomInterval: true,
}).withCallback(async () => {
if (env.NO_EXTERNAL_CONNECTION) return;
const analyticSetting = await getServerSettingByKeyAsync(db, "analytics");