Remove team and user id
This commit is contained in:
1 parent
c32cde6189
commit
5e23a2b79c
8 files changed
+11
-14
No files matched your search
@@ -238,7 +238,12 @@ class MonitorController {
|
||||
}
|
||||
|
||||
try {
|
||||
const monitor = await this.db.createMonitor(req.body);
|
||||
const { _id, teamId } = req.user;
|
||||
const monitor = await this.db.createMonitor({
|
||||
body: req.body,
|
||||
teamId,
|
||||
userId: _id,
|
||||
});
|
||||
|
||||
// Add monitor to job queue
|
||||
this.jobQueue.addJob(monitor._id, monitor);
|
||||
|
||||
Reference in new issue
Block a user