Skip to content
Snippets Groups Projects

Fix update passwrod

Merged Grigor Malo requested to merge fix-update-password into graphql-api
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -211,7 +211,8 @@ const resendVerificationEmailAfterLoginResolver = async (_, __, ctx) => {
@@ -211,7 +211,8 @@ const resendVerificationEmailAfterLoginResolver = async (_, __, ctx) => {
const updatePasswordResolver = async (_, { input }, ctx) => {
const updatePasswordResolver = async (_, { input }, ctx) => {
try {
try {
logger.info(`${USER_RESOLVER} updatePassword`)
logger.info(`${USER_RESOLVER} updatePassword`)
return updatePassword(input)
const { id, currentPassword, newPassword } = input
 
return updatePassword(id, currentPassword, newPassword)
} catch (e) {
} catch (e) {
logger.error(`${USER_RESOLVER} updatePassword: ${e.message}`)
logger.error(`${USER_RESOLVER} updatePassword: ${e.message}`)
throw new Error(e)
throw new Error(e)