update websocket

This commit is contained in:
2024-11-06 17:16:10 +07:00
parent ef5c753ce4
commit 57037a59ec
18 changed files with 129 additions and 71 deletions

View File

@@ -40,7 +40,7 @@ export class WorkshopMeetingRoomSchema extends PothosSchema {
workshopMeetingRoom: t.prismaField({
type: this.workshopMeetingRoom(),
args: this.builder.generator.findUniqueArgs('WorkshopMeetingRoom'),
resolve: async (query, root, args, ctx, info) => {
resolve: async (query, _root, args, _ctx, _info) => {
return await this.prisma.workshopMeetingRoom.findUnique({
...query,
where: args.where,
@@ -50,7 +50,7 @@ export class WorkshopMeetingRoomSchema extends PothosSchema {
workshopMeetingRooms: t.prismaField({
type: [this.workshopMeetingRoom()],
args: this.builder.generator.findManyArgs('WorkshopMeetingRoom'),
resolve: async (query, root, args, ctx, info) => {
resolve: async (query, _root, args, _ctx, _info) => {
return await this.prisma.workshopMeetingRoom.findMany({
...query,
where: args.filter ?? undefined,