expose workshop metric
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user