fix time geneate logic and replace default datetime by luxon

This commit is contained in:
2024-11-01 17:27:25 +07:00
parent 24a49d9412
commit ec77f07de1
14 changed files with 253 additions and 52 deletions

View File

@@ -43,7 +43,7 @@ export class ServiceMeetingRoomSchema extends PothosSchema {
args: this.builder.generator.findUniqueArgs('ServiceMeetingRoom'),
description:
'Retrieve a single service meeting room by its unique identifier.',
resolve: async (query, root, args, ctx, info) => {
resolve: async (query, _root, args, _ctx, _info) => {
return await this.prisma.serviceMeetingRoom.findUnique({
...query,
where: args.where,
@@ -55,7 +55,7 @@ export class ServiceMeetingRoomSchema extends PothosSchema {
args: this.builder.generator.findManyArgs('ServiceMeetingRoom'),
description:
'Retrieve a list of service meeting rooms with optional filtering, ordering, and pagination.',
resolve: async (query, root, args, ctx, info) => {
resolve: async (query, _root, args, _ctx, _info) => {
return await this.prisma.serviceMeetingRoom.findMany({
...query,
skip: args.skip ?? undefined,