We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8bf68e commit 2f23ac5Copy full SHA for 2f23ac5
src/db/influx.ts
@@ -19,8 +19,9 @@ export function onWebhookSend(webhookID: string) {
19
webhooksSent++;
20
}
21
22
-async function collect(timestamp = new Date()) {
+async function collect() {
23
if (!process.env.INFLUX_URL || !process.env.INFLUX_TOKEN) return;
24
+ const timestamp = cron.lastExecution;
25
26
const webhookCount = await Webhook.count();
27
const activeWebhookCount = await Webhook.count({ where: { active: true } });
0 commit comments