Skip to content

Commit 2e6a155

Browse files
committed
Fixed interval to 30 minutes
1 parent c3c7da0 commit 2e6a155

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shelter-supply/shelter-supply-expiration.job.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class ShelterSupplyExpirationJob {
1515

1616
private readonly logger = new Logger(ShelterSupplyExpirationJob.name);
1717

18-
@Cron(CronExpression.EVERY_10_SECONDS)
18+
@Cron(CronExpression.EVERY_30_MINUTES)
1919
async handleCron() {
2020
this.logger.log(`${ShelterSupplyExpirationJob.name} running`);
2121

@@ -28,6 +28,7 @@ export class ShelterSupplyExpirationJob {
2828
},
2929
where: {
3030
priority: SupplyPriority.Urgent,
31+
createdAt: new Date(),
3132
},
3233
});
3334

0 commit comments

Comments
 (0)