- fix: return the item saved
This commit is contained in:
@@ -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
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user