fix: update user state from server (#37374)

* fix: return updates from server
* fix: make store consistant and adjust form validation
This commit is contained in:
Ahmad Abdolsaheb
2019-10-21 14:37:28 +03:00
committed by mrugesh
parent e4a26c9a74
commit 3823ed19bc
2 changed files with 49 additions and 9 deletions

View File

@ -246,5 +246,5 @@ const updatePrivacyTerms = (req, res, next) => {
function updateUserFlag(req, res, next) {
const { user, body: update } = req;
user.updateAttributes(update, createStandardHandler(req, res, next));
return user.updateAttributes(update, createStandardHandler(req, res, next));
}