summaryrefslogtreecommitdiffstats
path: root/server/api
diff options
context:
space:
mode:
authorChristian Hofmaier2019-04-02 17:59:31 +0200
committerChristian Hofmaier2019-04-02 17:59:31 +0200
commitc3789261edacac1f6bc15b05b384708592d89384 (patch)
treebadab7e9c977e0a785fc96535b12a3d3844a4b09 /server/api
parent[server/external-backends] Add direct sync in idoit for some functions (creat... (diff)
downloadbas-c3789261edacac1f6bc15b05b384708592d89384.tar.gz
bas-c3789261edacac1f6bc15b05b384708592d89384.tar.xz
bas-c3789261edacac1f6bc15b05b384708592d89384.zip
[eventmanager] remove console logs
Diffstat (limited to 'server/api')
-rw-r--r--server/api/events.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/server/api/events.js b/server/api/events.js
index 585f140..23aeae7 100644
--- a/server/api/events.js
+++ b/server/api/events.js
@@ -31,7 +31,6 @@ router.getAsync('', async (req, res) => {
// ########################## POST requests #################################
router.postAsync('/blacklist', async (req, res) => {
- console.log('body: ' + req.body.groups)
if (req.body.groups) {
var blacklist = await groupUtil.getAllChildren(req.body.groups)
res.send(blacklist)
@@ -51,8 +50,6 @@ router.postAsync(['', '/:id'], async (req, res) => {
if (req.params.id > 0) {
// Update existing role
eventDb = await db.event.findOne({ where: { id: req.params.id } })
- console.log('Blacklist: ' + req.body.blacklistGroups)
- console.log('Groups: ' + req.body.groups)
if (eventDb !== null) {
promises.push(eventDb.update({ name: req.body.name, description: req.body.description, config: req.body.config || null, times: req.body.times, important: req.body.important }))
promises.push(eventDb.setGroups(req.body.groups, { through: { blacklist: 0 } }))