From 999209e213b637a29595ef587ce0d2460a23badc Mon Sep 17 00:00:00 2001 From: xxeol Date: Tue, 18 Jan 2022 21:42:00 +0900 Subject: [PATCH] =?UTF-8?q?style:=20=EC=A3=BC=EC=84=9D=20=EC=98=A4?= =?UTF-8?q?=ED=83=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions/api/routes/room/roomListGET.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/routes/room/roomListGET.js b/functions/api/routes/room/roomListGET.js index 69bba32..60a975b 100644 --- a/functions/api/routes/room/roomListGET.js +++ b/functions/api/routes/room/roomListGET.js @@ -34,7 +34,7 @@ module.exports = async (req, res) => { const rawRooms = await roomDB.getRoomsByUserId(client, user.userId); let waitingRooms = rawRooms.filter((rawRoom) => rawRoom.status === "NONE"); - waitingRooms = _.sortBy(waitingRooms, 'createdAt').reverse(); // 최근에 생선된 대기방이 위로 + waitingRooms = _.sortBy(waitingRooms, 'createdAt').reverse(); // 최근에 생성된 대기방이 위로 let ongoingRooms = rawRooms.filter((rawRoom) => rawRoom.status === "ONGOING"); ongoingRooms = _.sortBy(ongoingRooms, 'startAt').reverse(); // 최근에 시작한 습관방이 위로 console.log("waitingRooms", waitingRooms);