update code ngu

This commit is contained in:
2024-11-25 22:06:47 +07:00
parent 84a09375da
commit 26dd46c7a0
7 changed files with 489 additions and 56 deletions

View File

@@ -80,7 +80,7 @@ export class CronService {
}
// cron every 1 minute to check payment status where created_at is more than 15 minutes
@Cron(CronExpression.EVERY_MINUTE)
@Cron(CronExpression.EVERY_10_MINUTES)
async checkPaymentStatus() {
Logger.log('Checking payment status', 'checkPaymentStatus')
const payments = await this.prisma.payment.findMany({