Skip to content

Commit

Permalink
[CHORE] userPokeProjectGET.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeon-z committed Jan 21, 2022
1 parent 2ea603c commit 2b5626f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/routes/user/userPokeProjectGET.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ module.exports = async (req, res) => {

// 1-1. userId로 user가 진행중인 projectId 불러오기
const projectId = await projectDB.getProjectIdByUserId(client, userId);
if (!projectId) return res.status(statusCode.BAD_REQUEST).send(util.fail(statusCode.BAD_REQUEST, responseMessage.NO_USER));

// 1-2. 유저의 is_checked = true로 변경
let user = await userDB.updatePokedUser(client, userId);
if (!user) return res.status(statusCode.BAD_REQUEST).send(util.fail(statusCode.BAD_REQUEST, responseMessage.NO_USER));

const memberId = await projectPokeDB.getPokingUserByProjectId(client, projectId);

Expand Down

0 comments on commit 2b5626f

Please sign in to comment.