Skip to content

Commit 3b26d44

Browse files
committed
modify: Leaderboard 조회시 type 분기는 post를 먼저 하도록 통일
1 parent 8f8feb3 commit 3b26d44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repositories/leaderboard.repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class LeaderboardRepository {
1919
return values.rows;
2020
} catch (error) {
2121
logger.error(`Leaderboard Repo getLeaderboard error:`, error);
22-
throw new DBError(`${type === 'user' ? '유저' : '게시글'} 리더보드 조회 중 문제가 발생했습니다.`);
22+
throw new DBError(`${type === 'post' ? '게시글' : '유저'} 리더보드 조회 중 문제가 발생했습니다.`);
2323
}
2424
}
2525

0 commit comments

Comments
 (0)