Fix migrations for manual override

This commit is contained in:
goga-m 2017-09-27 12:10:48 +03:00 committed by Josh Harvey
parent bb26c0f458
commit 9877fc8ef0
4 changed files with 332 additions and 98 deletions

View file

@ -197,7 +197,7 @@ app.patch('/api/customer/:id', (req, res, next) => {
if (!req.query.authorizedOverride) return res.status(400).send({Error: 'Requires authorized'})
return customers.patch(req.params.id, {
authorized_override: req.query.authorizedOverride
authorizedOverride: req.query.authorizedOverride
})
.then(r => res.send(r))
.catch(() => res.status(404).send({Error: 'Not found'}))