Update CenterMentorSchema to include 'active' field for mentor status and adjust role assignment to use Role enum. Enhance payment cancellation logic in CronService to update associated order status to 'FAILED'. Bump epess-database subproject commit reference to reflect recent changes.
This commit is contained in:
@@ -87,6 +87,10 @@ export class CronService {
|
||||
where: { id: payment.id },
|
||||
data: { status: PaymentStatus.CANCELLED },
|
||||
})
|
||||
await this.prisma.order.update({
|
||||
where: { id: payment.orderId },
|
||||
data: { status: OrderStatus.FAILED },
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user