Skip to content

Commit

Permalink
style: TODO 주석 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
xxeol2 committed Jan 18, 2022
1 parent cfd1aac commit 9caab77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/api/routes/room/roomListGET.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ 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();
ongoingRooms = _.sortBy(ongoingRooms, 'startAt').reverse(); // 최근에 시작한 습관방이 위로
console.log("waitingRooms", waitingRooms);
console.log("ongoingRooms", ongoingRooms);
const waitingRoomIds = [...new Set(waitingRooms.filter(Boolean).map((room) => room.roomId))];
Expand Down
1 change: 1 addition & 0 deletions functions/api/routes/room/roomRecordPOST.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ module.exports = async (req, res) => {
const uploadedRecord = await recordDB.uploadRecord(client, record.recordId, certifyingImg[0], timerRecord);
if (!entry.thumbnail) {
await roomDB.updateThumbnail(client, entry.entryId, certifyingImg[0]);
// @TODO 첫번째 습관 인증 축하 알림
}

const data = {
Expand Down

0 comments on commit 9caab77

Please sign in to comment.