expose workshop metric

This commit is contained in:
2024-11-26 18:07:03 +07:00
parent 1062f5944d
commit e63f900cf4
3 changed files with 15 additions and 2 deletions

View File

@@ -94,10 +94,10 @@ export class CronService {
@Cron(CronExpression.EVERY_MINUTE)
async handleRefundTicket() {
Logger.log('Handling refund ticket', 'handleRefundTicket')
// get all orders where status is PENDING_REFUND or REFUNDED and has schedule.dates in future
// get all orders where status is REFUNDED and has schedule.dates in future
const orders = await this.prisma.order.findMany({
where: {
status: { in: [OrderStatus.PENDING_REFUND, OrderStatus.REFUNDED] },
status: OrderStatus.REFUNDED,
schedule: {
dates: {
some: {