Skip to content

Commit

Permalink
Merge pull request #253 from hyeeyoung/dev
Browse files Browse the repository at this point in the history
release 1.3.0
  • Loading branch information
hyejungg authored Jun 13, 2023
2 parents 8cd5f47 + 72ca3bb commit c49ad5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/controllers/authController.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ module.exports = {
},
restartSignIn: async function (req, res, next) {
try {
if (!req.body.verify && !req.body.email && !req.body.fcmToken) {
if (!req.body.verify || !req.body.email || !req.body.fcmToken) {
throw new BadRequest(ErrorMessage.BadRequestMeg);
}
const isVerify = req.body.verify;
Expand Down
2 changes: 1 addition & 1 deletion src/models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module.exports = {

if (rows[0].fcm_token !== fcmToken) {
const sqlUpdate = 'UPDATE users SET fcm_token = ? WHERE user_id = ?';
const params = [fcmToken, selectRows[0].user_id];
const params = [fcmToken, rows[0].user_id];

const [updateRows] = await db.queryWithTransaction(sqlUpdate, params);

Expand Down

0 comments on commit c49ad5d

Please sign in to comment.