Change cron job frequency to check payment status every minute instead of every 10 minutes for improved responsiveness.
This commit is contained in:
@@ -70,7 +70,7 @@ export class CronService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// cron every 1 minute to check payment status where created_at is more than 15 minutes
|
// cron every 1 minute to check payment status where created_at is more than 15 minutes
|
||||||
@Cron(CronExpression.EVERY_10_MINUTES)
|
@Cron(CronExpression.EVERY_MINUTE)
|
||||||
async checkPaymentStatus() {
|
async checkPaymentStatus() {
|
||||||
Logger.log('Checking payment status', 'checkPaymentStatus')
|
Logger.log('Checking payment status', 'checkPaymentStatus')
|
||||||
const payments = await this.prisma.payment.findMany({
|
const payments = await this.prisma.payment.findMany({
|
||||||
|
|||||||
Reference in New Issue
Block a user