Skip to content

Commit

Permalink
Merge pull request #3 from yaspo/cron
Browse files Browse the repository at this point in the history
update cron expressions
  • Loading branch information
minetoblend authored Aug 26, 2024
2 parents 64182f3 + 4b2ddf1 commit c655679
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/jobs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down

0 comments on commit c655679

Please sign in to comment.