Skip to content
Snippets Groups Projects
Commit 5ba25881 authored by Yannis Barlas's avatar Yannis Barlas
Browse files

Merge branch 'fix-update-password' into 'graphql-api'

Fix update passwrod

See merge request !27
parents 0441a73c d36121a5
No related branches found
No related tags found
3 merge requests!52Docx,!27Fix update passwrod,!17Graphql api
......@@ -211,7 +211,8 @@ const resendVerificationEmailAfterLoginResolver = async (_, __, ctx) => {
const updatePasswordResolver = async (_, { input }, ctx) => {
try {
logger.info(`${USER_RESOLVER} updatePassword`)
return updatePassword(input)
const { id, currentPassword, newPassword } = input
return updatePassword(id, currentPassword, newPassword)
} catch (e) {
logger.error(`${USER_RESOLVER} updatePassword: ${e.message}`)
throw new Error(e)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment