Skip to content

Adding CronJob methood #1

@Ulrich-Mbouna

Description

@Ulrich-Mbouna

There is a mistake in the code of adding CronJob in TaskService.

You used:

const job = new CronJob({
      cronTime: cronExpression,
      timeZone: 'America/New_York',
      onTick: () => callback(this.syncDate),
    });

This syntax envolves error because you have to either use CronJob.from({}) or new CronJob('cronExpression', ()=> {},...).

Thanks you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions