Skip to content

Adding CronJob methood #1

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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