Skip to content

Commit 2f23ac5

Browse files
committed
fix: fix influx cron
1 parent f8bf68e commit 2f23ac5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/db/influx.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ export function onWebhookSend(webhookID: string) {
1919
webhooksSent++;
2020
}
2121

22-
async function collect(timestamp = new Date()) {
22+
async function collect() {
2323
if (!process.env.INFLUX_URL || !process.env.INFLUX_TOKEN) return;
24+
const timestamp = cron.lastExecution;
2425

2526
const webhookCount = await Webhook.count();
2627
const activeWebhookCount = await Webhook.count({ where: { active: true } });

0 commit comments

Comments
 (0)