Skip to content

Commit

Permalink
Reset cache on deleted schedule.
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmoy12c committed Aug 5, 2024
1 parent 42b9d70 commit 672bf14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/bot/bot.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export class BotService implements OnModuleInit {
}
});
this.schedulerRegistry.deleteCronJob(existingSchedule.name);
await this.cacheManager.reset();
this.logger.log(`Deleted schedule for bot: ${existingSchedule.botId}`);
}

Expand Down

0 comments on commit 672bf14

Please sign in to comment.