diff --git a/src/user/user.service.ts b/src/user/user.service.ts index 4c3824b..c695715 100644 --- a/src/user/user.service.ts +++ b/src/user/user.service.ts @@ -43,8 +43,8 @@ export class UserService { } //단일 조회 - async fetchOne(where: Prisma.UserWhereUniqueInput): Promise { - return await this.prisma.user.findUniqueOrThrow({ where: where }) + async fetchOne(where: Prisma.UserWhereInput): Promise { + return await this.prisma.user.findFirstOrThrow({ where: where }) } //단일 추가