Closed Datnqse62453 closed 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 } }
);