Add hour filter to incidents page
This commit is contained in:
1 parent
fc36da4f7b
commit
f46f8cb12b
2 files changed
+9
-6
No files matched your search
@@ -498,7 +498,10 @@ class MonitorController {
|
||||
|
||||
seedDb = async (req, res, next) => {
|
||||
try {
|
||||
await seedDb(userId, teamId);
|
||||
const token = getTokenFromHeaders(req.headers);
|
||||
const { jwtSecret } = this.settingsService.getSettings();
|
||||
const { _id, teamId } = jwt.verify(token, jwtSecret);
|
||||
await seedDb(_id, teamId);
|
||||
} catch (error) {
|
||||
next(handleError(error, SERVICE_NAME, "seedDb"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user