summaryrefslogtreecommitdiffstats
path: root/server/api/clients.js
diff options
context:
space:
mode:
authorUdo Walter2018-08-05 08:48:58 +0200
committerUdo Walter2018-08-05 08:48:58 +0200
commite69d7c23102dbdc1b9f91a97d9e6db519694d961 (patch)
treee031dfb3080f7e73681198a73aa39aa6d3b17bc3 /server/api/clients.js
parent[external-backends] Added comments for the API functions and in the external-... (diff)
downloadbas-e69d7c23102dbdc1b9f91a97d9e6db519694d961.tar.gz
bas-e69d7c23102dbdc1b9f91a97d9e6db519694d961.tar.xz
bas-e69d7c23102dbdc1b9f91a97d9e6db519694d961.zip
[webapp] improved data table with search and pagination;
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() }