Skip to content

Commit

Permalink
refactor : Playlist Repository 부분 BAD_REQUEST -> SEVER_ERROR
Browse files Browse the repository at this point in the history
* 서버 네트워크 환경 등의 이유로 발생한 에러를 BAD_REQUEST로 잘못 명시하여 수정
  • Loading branch information
sk000801 committed Feb 22, 2024
1 parent 4ae706a commit c935cb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/nest/src/repository/playlist.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class PlaylistRepository {
);
throw new CatchyException(
'REPOSITORY_ERROR',
HTTP_STATUS_CODE.BAD_REQUEST,
HTTP_STATUS_CODE.SERVER_ERROR,
ERROR_CODE.REPOSITORY_ERROR,
);
} finally {
Expand Down Expand Up @@ -165,7 +165,7 @@ export class PlaylistRepository {
);
throw new CatchyException(
'REPOSITORY_ERROR',
HTTP_STATUS_CODE.BAD_REQUEST,
HTTP_STATUS_CODE.SERVER_ERROR,
ERROR_CODE.REPOSITORY_ERROR,
);
} finally {
Expand Down

0 comments on commit c935cb6

Please sign in to comment.