refactor source code

This commit is contained in:
2024-10-29 17:42:54 +07:00
parent 3b23d9e0b7
commit 152bb50da8
83 changed files with 8473 additions and 7577 deletions

View File

@@ -1,13 +1,13 @@
import { Inject, Injectable } from '@nestjs/common';
import { Inject, Injectable } from '@nestjs/common'
import {
Pothos,
PothosRef,
PothosSchema,
SchemaBuilderToken,
} from '@smatch-corp/nestjs-pothos';
import { Builder } from '../Graphql/graphql.builder';
import { PrismaService } from '../Prisma/prisma.service';
import { PaymentStatus } from '@prisma/client';
} 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 {
@@ -15,7 +15,7 @@ export class RefundTicketSchema extends PothosSchema {
@Inject(SchemaBuilderToken) private readonly builder: Builder,
private readonly prisma: PrismaService,
) {
super();
super()
}
// Types section
@@ -45,7 +45,7 @@ export class RefundTicketSchema extends PothosSchema {
description: 'The order for the refund ticket.',
}),
}),
});
})
}
// Queries section
@@ -65,9 +65,9 @@ export class RefundTicketSchema extends PothosSchema {
cursor: args.cursor ?? undefined,
take: args.take ?? undefined,
skip: args.skip ?? undefined,
});
})
},
}),
}));
}))
}
}