Skip to content

Commit e1b9db1

Browse files
committed
Saving, but not returning the right value
1 parent 95e57ae commit e1b9db1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/org.controller/org.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ async function updateUser (req, res, next) {
659659
}
660660
}
661661

662-
const payload = await userRepo.updateUser(usernameParams, shortNameParams, queryParametersJson, { session })
662+
const payload = await userRepo.updateUser(usernameParams, shortNameParams, queryParametersJson, { session }, !req.useRegistry)
663663
await session.commitTransaction()
664664
return res.status(200).json({ message: `${usernameParams} was successfully updated.`, updated: payload })
665665
} catch (err) {

0 commit comments

Comments
 (0)