How do I write a cron scheduler to trigger every day at a specific time?

Viewed 16

How do I write a cron scheduler with NestJS so that it triggers every day at 3 am?

@Cron('10 * * * * *')
async handleCron() {
    const country = await this.countryRepo.find();
    country.map(async (value) => {
      ...doing something
    });

}
1 Answers
Related