From 87d2b03329ee713640d3beb5d359078e4b674cd8 Mon Sep 17 00:00:00 2001 From: fiore Date: Wed, 12 Mar 2025 15:47:33 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B6=88=ED=95=84=EC=9A=94=ED=95=9C=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/leaderboard.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routes/leaderboard.js b/routes/leaderboard.js index 610c36b..9e4fbb0 100644 --- a/routes/leaderboard.js +++ b/routes/leaderboard.js @@ -20,7 +20,7 @@ router.get("/", async function (req, res, next) { // 동일한 rating을 가진 유저들만 필터링 var sameRatingUsers = await users - .find({ rating: userRating }, { projection: { username: 1, nickname: 1, score: 1, win: 1, lose: 1, profileImageIndex:1, rating: 1 } }) + .find({ rating: userRating }, { projection: { nickname: 1, score: 1, win: 1, lose: 1, profileImageIndex:1, rating: 1 } }) .toArray(); // 승률 계산 및 정렬 @@ -29,7 +29,6 @@ router.get("/", async function (req, res, next) { const winRate = totalGames > 0 ? ((user.win || 0) / totalGames * 100) : 0; return { - username: user.username, nickname: user.nickname, score: user.score || 0, win: user.win || 0,