FPT-Capstone-Group / Smart_Parking_Server

Server to Manage bike's ownership physical card, application and parking session
0 stars 0 forks source link

api changePassword not work #25

Closed Datnqse62453 closed 11 months ago

Datnqse62453 commented 11 months ago

image

trongtomo commented 11 months ago

This works

  await User.update(
      { password: newPass },
      { where: { userId: user.userId } }
    );

instead of

  await User.update(
      { password: newPass },
      { where: { id: user.userId } }
    );