Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
fix: modify prisma error code
Browse files Browse the repository at this point in the history
  • Loading branch information
jspark2000 authored Mar 22, 2024
1 parent e267088 commit 1d47143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/src/survey/survey.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ export class SurveyService {
throw error
}
if (error instanceof Prisma.PrismaClientKnownRequestError) {
if (error.code === 'P2003')
if (error.code === 'P2002')
throw new ConflictFoundException('이미 완료한 출석조사입니다')
if (error.code === 'P2025')
throw new EntityNotExistException('출석조사 대상이 아닙니다')
Expand Down

0 comments on commit 1d47143

Please sign in to comment.