- fix: return the item saved

This commit is contained in:
Paolo Arena
2019-02-08 17:11:33 +01:00
parent 87378fe732
commit 318ff7a798
7 changed files with 35 additions and 17 deletions

View File

@@ -92,7 +92,7 @@ router.post(process.env.LINK_UPDATE_PASSWORD, (req, res) => {
// Salva lo User
user.save().then(() => {
res.header('x-auth', token).send(user); // Ritorna il token di ritorno
res.header('x-auth', token).send({user}); // Ritorna il token di ritorno
});
})
}