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,10 +130,10 @@ router.post('/create', passport.parseForm, passport.csrfProtection, (req, res) =
|
||||||
return res.redirect('/reports/create?' + tools.queryParams(data));
|
return res.redirect('/reports/create?' + tools.queryParams(data));
|
||||||
}
|
}
|
||||||
|
|
||||||
reportProcessor.start(id);
|
reportProcessor.start(id, () => {
|
||||||
|
req.flash('success', util.format(_('Report “%s” created'), data.name));
|
||||||
req.flash('success', util.format(_('Report “%s” created'), data.name));
|
res.redirect('/reports');
|
||||||
res.redirect('/reports');
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue