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 }, + // }); + // }, + // }), })); } }