summaryrefslogtreecommitdiffstats
path: root/server/api/clients.js
diff options
context:
space:
mode:
authorUdo Walter2019-02-24 02:33:52 +0100
committerUdo Walter2019-02-24 02:33:52 +0100
commit813195e3dfb5baae09aa11cddeef12fb0b9fb49b (patch)
tree58562c85d76efdad41afcd0664c5a8cdc8cb4a55 /server/api/clients.js
parent[webapp/alerts] Remove unnecessary code which produced vue warnings (diff)
downloadbas-813195e3dfb5baae09aa11cddeef12fb0b9fb49b.tar.gz
bas-813195e3dfb5baae09aa11cddeef12fb0b9fb49b.tar.xz
bas-813195e3dfb5baae09aa11cddeef12fb0b9fb49b.zip
[webapp/groups] rework old tables to new data table
slightly redesigned the editing of groups and clients
Diffstat (limited to 'server/api/clients.js')
-rw-r--r--server/api/clients.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/server/api/clients.js b/server/api/clients.js
index 71433b5..4dba883 100644
--- a/server/api/clients.js
+++ b/server/api/clients.js
@@ -17,7 +17,6 @@ router.getAsync('', async (req, res) => {
router.getAsync('/:id', async (req, res) => {
const client = await db.client.findOne({ where: { id: req.params.id }, include: ['groups'] })
- console.log(req.params.id)
if (client) res.status(200).send(client)
else res.status(404).end()
})
@@ -37,7 +36,6 @@ router.postAsync(['', '/:id'], async (req, res) => {
io.in('broadcast newClient').emit('notifications newAlert', { type: 'info', text: 'New client!' })
} else {
client = await db.client.findOne({ where: { id: req.params.id } })
- console.log('asd')
if (client) await client.update(req.body.data)
}
if (client) {