Skip to content

Commit

Permalink
Merge pull request #399 from TeamSparker/fix/#398
Browse files Browse the repository at this point in the history
[Issue] sparkPOST API 인증 완료한 사용자에게 보내는 스파크 예외처리 해제
  • Loading branch information
youngkwon02 authored May 8, 2022
2 parents 69eb36f + 444205f commit c180ef3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions/api/routes/room/sparkPOST.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ module.exports = async (req, res) => {
}

// @error 4. 쉴래요 습관완료한 사람한테 스파크 보내려함
if (record.status === 'DONE' || record.status === 'REST') {
return res.status(statusCode.BAD_REQUEST).send(util.fail(statusCode.BAD_REQUEST, responseMessage.DONE_OR_REST_MEMBER));
}
// if (record.status === 'DONE' || record.status === 'REST') {
// return res.status(statusCode.BAD_REQUEST).send(util.fail(statusCode.BAD_REQUEST, responseMessage.DONE_OR_REST_MEMBER));
// }

// @error 5. 자신에게 스파크를 보내려 할 때
if (record.userId === userId) {
Expand Down

0 comments on commit c180ef3

Please sign in to comment.