Update RefundTicket schema to rename 'reason' field to 'rejectedReason' for clarity in status updates. Update subproject reference in epess-database. Enhance generated types in pothos.generated.ts for improved schema management.

This commit is contained in:
2024-11-29 13:56:57 +07:00
parent abb7e38df3
commit 7cff5069de
3 changed files with 3 additions and 3 deletions

View File

@@ -211,7 +211,7 @@ export class RefundTicketSchema extends PothosSchema {
where: { id: args.refundTicketId },
data: {
status: args.action === 'APPROVE' ? RefundTicketStatus.APPROVED : RefundTicketStatus.REJECTED,
reason: args.action === 'REJECT' ? args.reason : undefined,
rejectedReason: args.action === 'REJECT' ? args.reason : undefined,
moderatorId: ctx.http.me?.id,
},
})

File diff suppressed because one or more lines are too long