We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3c7da0 commit 2e6a155Copy full SHA for 2e6a155
src/shelter-supply/shelter-supply-expiration.job.ts
@@ -15,7 +15,7 @@ export class ShelterSupplyExpirationJob {
15
16
private readonly logger = new Logger(ShelterSupplyExpirationJob.name);
17
18
- @Cron(CronExpression.EVERY_10_SECONDS)
+ @Cron(CronExpression.EVERY_30_MINUTES)
19
async handleCron() {
20
this.logger.log(`${ShelterSupplyExpirationJob.name} running`);
21
@@ -28,6 +28,7 @@ export class ShelterSupplyExpirationJob {
28
},
29
where: {
30
priority: SupplyPriority.Urgent,
31
+ createdAt: new Date(),
32
33
});
34
0 commit comments