update order id
This commit is contained in:
@@ -169,6 +169,9 @@ export class UserSchema extends PothosSchema {
|
||||
throw new Error('Not allowed')
|
||||
}
|
||||
let user = ctx.http.me as UserWithChatRooms
|
||||
|
||||
console.log("hahahahahaha")
|
||||
|
||||
if (!user?.name) {
|
||||
throw new Error('User not found')
|
||||
}
|
||||
@@ -211,10 +214,12 @@ export class UserSchema extends PothosSchema {
|
||||
type: this.user(),
|
||||
args: this.builder.generator.findUniqueArgs('User'),
|
||||
resolve: async (query, _root, args) => {
|
||||
return await this.prisma.user.findUniqueOrThrow({
|
||||
const user = await this.prisma.user.findUniqueOrThrow({
|
||||
...query,
|
||||
where: args.where,
|
||||
})
|
||||
|
||||
return user;
|
||||
},
|
||||
}),
|
||||
userBySession: t.prismaField({
|
||||
|
||||
Reference in New Issue
Block a user