Some bugfixes to the previous commit.
This commit is contained in:
parent
8237dd5d77
commit
bb4eb3832f
1 changed files with 4 additions and 4 deletions
|
@ -130,13 +130,13 @@ router.post('/create', passport.parseForm, passport.csrfProtection, (req, res) =
|
|||
return res.redirect('/reports/create?' + tools.queryParams(data));
|
||||
}
|
||||
|
||||
reportProcessor.start(id);
|
||||
|
||||
reportProcessor.start(id, () => {
|
||||
req.flash('success', util.format(_('Report “%s” created'), data.name));
|
||||
res.redirect('/reports');
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
router.get('/edit/:id', passport.csrfProtection, (req, res) => {
|
||||
const reqData = req.query;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue