1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00

chore: quick fix

This commit is contained in:
2023-02-03 16:48:18 +05:00
parent 2bae52e307
commit 7f2174dd2c

View File

@@ -159,7 +159,7 @@ const updatePassword = async (
) => {
const { currentPassword, newPassword } = data
const userId = req.user?.userId
const dbUser = await User.findOne({ userId })
const dbUser = await User.findOne({ id: userId })
if (!dbUser)
throw {