nestjs_auth...

This commit is contained in:
최준흠 2022-09-10 12:32:18 +09:00
parent f263299474
commit 9968f68c91

View File

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