From 7714a0fb79aa353bc127baa3ff2197f9a79f2f0a Mon Sep 17 00:00:00 2001 From: Ly Tuan Kiet Date: Fri, 18 Oct 2024 15:52:03 +0700 Subject: [PATCH] db bump --- epess-database | 2 +- src/User/user.schema.ts | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/epess-database b/epess-database index 5aed178..3b4cc19 160000 --- a/epess-database +++ b/epess-database @@ -1 +1 @@ -Subproject commit 5aed178f12081353bd8f1bce3dcb97ab51cdc7f3 +Subproject commit 3b4cc1941dbb316a9a1190a47845112fde40acf6 diff --git a/src/User/user.schema.ts b/src/User/user.schema.ts index 27dbdd7..b8867c6 100644 --- a/src/User/user.schema.ts +++ b/src/User/user.schema.ts @@ -153,6 +153,21 @@ export class UserSchema extends PothosSchema { }); }, }), + + // banUser: t.prismaField({ + // description: 'Ban a user.', + // type: this.user(), + // args: { + // userId: t.arg({ type: 'String', required: true }), + // }, + // resolve: async (query, root, args, ctx, info) => { + // return await this.prisma.user.update({ + // ...query, + // where: { id: args.userId }, + // data: { banned: true }, + // }); + // }, + // }), })); } }