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
@@ -665,9 +665,9 @@ const getMonitorsWithChecksByTeamId = async ({
|
||||
* @returns {Promise<Monitor>}
|
||||
* @throws {Error}
|
||||
*/
|
||||
const createMonitor = async (body) => {
|
||||
const createMonitor = async ({ body, teamId, userId }) => {
|
||||
try {
|
||||
const monitor = new Monitor({ ...body });
|
||||
const monitor = new Monitor({ ...body, teamId, userId });
|
||||
const saved = await monitor.save();
|
||||
return saved;
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user