merge change from db

This commit is contained in:
2024-10-25 14:49:16 +07:00
parent 2872ac69ef
commit 7e25e8d96b
26 changed files with 147 additions and 94 deletions

View File

@@ -7,6 +7,7 @@ import {
} from '@smatch-corp/nestjs-pothos';
import { Builder } from '../Graphql/graphql.builder';
import { PrismaService } from '../Prisma/prisma.service';
import { PaymentStatus } from '@prisma/client';
@Injectable()
export class RefundTicketSchema extends PothosSchema {
@@ -28,7 +29,8 @@ export class RefundTicketSchema extends PothosSchema {
amount: t.exposeFloat('amount', {
description: 'The amount of the refund ticket.',
}),
status: t.exposeString('status', {
status: t.expose('status', {
type: PaymentStatus,
description: 'The status of the refund ticket.',
}),
createdAt: t.expose('createdAt', {