DEV Community

sunj
sunj

Posted on

NestJs 중복된 값 체크, 2024-01-30

user.repository 에서 try catch로 해당됐을 때만 저장하고 해당되지 않는 경우에는 반환한다

console.log('error', error);
Enter fullscreen mode Exit fullscreen mode

그 중 error.errno 값으로 if문을 만들어서 반환한다

참조 : https://youtu.be/3JminDpCJNE?si=pIbl_i-fmCmBFPKY

Top comments (0)