nestjs_auth...

This commit is contained in:
최준흠 2022-09-10 12:43:31 +09:00
parent 9968f68c91
commit a73e85cf45

View File

@ -43,8 +43,8 @@ export class UserService {
}
//단일 조회
async fetchOne(where: Prisma.UserWhereUniqueInput): Promise<User | null> {
return await this.prisma.user.findUniqueOrThrow({ where: where })
async fetchOne(where: Prisma.UserWhereInput): Promise<User | null> {
return await this.prisma.user.findFirstOrThrow({ where: where })
}
//단일 추가