summaryrefslogtreecommitdiffstats
path: root/server/api/clients.js
diff options
context:
space:
mode:
authorJannik Schönartz2018-11-22 00:02:23 +0100
committerJannik Schönartz2018-11-22 00:02:23 +0100
commit75a3a3e8fa85a591c23c84638a74398767bce66e (patch)
tree5d93fbacc7a2671784b2d0e6f35b277d1f2c6114 /server/api/clients.js
parent[server/models] fix backend model primary keys (diff)
downloadbas-75a3a3e8fa85a591c23c84638a74398767bce66e.tar.gz
bas-75a3a3e8fa85a591c23c84638a74398767bce66e.tar.xz
bas-75a3a3e8fa85a591c23c84638a74398767bce66e.zip
[external-backends] Fix: Delete clients in the backend is now working properly.
Diffstat (limited to 'server/api/clients.js')
-rw-r--r--server/api/clients.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/api/clients.js b/server/api/clients.js
index 0fbb7af..a436213 100644
--- a/server/api/clients.js
+++ b/server/api/clients.js
@@ -42,7 +42,9 @@ module.exports.post = {
// delete clients
delete: function (req, res) {
- db.client.destroy({ where: { id: req.body.ids } }).then(count => { res.send({ count }) })
- backendHelper.deleteClients(req.body.ids)
+ db.client.destroy({ where: { id: req.body.ids } }).then(count => {
+ backendHelper.deleteClients()
+ res.send({ count })
+ })
}
}