From 4b2ddf1afaeae6816bde6d32603363ac48dc4693 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 26 Aug 2024 10:44:22 +0200 Subject: [PATCH] updated cron expressions --- src/commands/jobs.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/jobs.ts b/src/commands/jobs.ts index 21d72a3..78b58f8 100644 --- a/src/commands/jobs.ts +++ b/src/commands/jobs.ts @@ -428,7 +428,7 @@ export class JobsCommand extends Subcommand { motivationLossJob: CronJob; private async motivationGain() { - this.motivationGainJob = new CronJob('* * */6 * * *', async () => { + this.motivationGainJob = new CronJob('0 0 */6 * * *', async () => { try { await this.updateMotivation("gain"); } catch (e) { @@ -443,7 +443,7 @@ export class JobsCommand extends Subcommand { } private async motivationLoss() { - this.motivationLossJob = new CronJob('* * */12 * * *', async () => { + this.motivationLossJob = new CronJob('0 0 */12 * * *', async () => { try { await this.updateMotivation("loss"); } catch (e) {