summaryrefslogtreecommitdiffstats
path: root/server/api/clients.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/api/clients.js')
-rw-r--r--server/api/clients.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/api/clients.js b/server/api/clients.js
index 046bced..862a1a2 100644
--- a/server/api/clients.js
+++ b/server/api/clients.js
@@ -42,7 +42,7 @@ module.exports.post = {
db.client.findOne({ where: { id } }).then(client => {
if (client) {
var promises = []
- if (req.body.info) promises.push([client.update(req.body.info)])
+ if (req.body.info) promises.push(client.update(req.body.info))
if (req.body.groupIds) promises.push(client.setGroups(req.body.groupIds))
Promise.all(promises).then(() => { res.send({ id }) })
} else { res.status(404).end() }