Skip to content

Commit

Permalink
feat: 인증사진 모아보기에 timerRecord 항목 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
xxeol2 committed Feb 14, 2022
1 parent 1f7e2f0 commit 8aa16ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions functions/api/routes/myroom/myroomRoomGET.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module.exports = async (req, res) => {
client = await db.connect(req);

const room = await roomDB.getRoomById(client, roomId);
console.log(room);
// @error 2. 존재하지 않는 습관방인 경우
if (!room) {
res.status(statusCode.NO_CONTENT).send(util.fail(statusCode.NO_CONTENT, responseMessage.GET_ROOM_DATA_FAIL));
Expand Down Expand Up @@ -68,6 +69,7 @@ module.exports = async (req, res) => {
certifyingImg: record.certifyingImg,
sparkNum,
status: record.status,
timerRecord: record.timerRecord,
};
});

Expand Down

0 comments on commit 8aa16ef

Please sign in to comment.