smaller refactorings continued

This commit is contained in:
azivner
2018-04-01 12:03:21 -04:00
parent acc82f39c4
commit 8ba830c04b
8 changed files with 41 additions and 34 deletions

View File

@@ -3,7 +3,7 @@
const changePasswordService = require('../../services/change_password');
async function changePassword(req) {
return await changePasswordService.changePassword(req.body['current_password'], req.body['new_password'], req);
return await changePasswordService.changePassword(req.body.current_password, req.body.new_password);
}
module.exports = {