From a85ae41557d10533a12f1c91f60fc96dedd0b3a3 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 22 Jul 2024 12:47:50 -0700 Subject: [PATCH] initial commit --- Server/controllers/monitorController.js | 15 +++++++++++++++ Server/db/MongoDB.js | 20 ++++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/Server/controllers/monitorController.js b/Server/controllers/monitorController.js index 52433c8d7..4e51aca97 100644 --- a/Server/controllers/monitorController.js +++ b/Server/controllers/monitorController.js @@ -98,6 +98,21 @@ const getMonitorsByUserId = async (req, res, next) => { } }; +const getMonitorByIdForIncidents = async (req, res, next) => { + try { + } catch (error) { + error.service = SERVICE_NAME; + next(error); + } +}; +const getMonitorsByUserIdForIncidents = async (req, res, next) => { + try { + } catch (error) { + error.service = SERVICE_NAME; + next(error); + } +}; + /** * Creates a new monitor * @async diff --git a/Server/db/MongoDB.js b/Server/db/MongoDB.js index a59822f98..86160b91c 100644 --- a/Server/db/MongoDB.js +++ b/Server/db/MongoDB.js @@ -338,6 +338,26 @@ const getMonitorsByUserId = async (req, res) => { } }; +/** + * Get monitors by UserID + * @async + * @param {Express.Request} req + * @param {Express.Response} res + * @returns {Promise} + * @throws {Error} + */ +const getMonitorByIdForIncidents = async (req, res, next) => {}; + +/** + * Get monitors by UserID + * @async + * @param {Express.Request} req + * @param {Express.Response} res + * @returns {Promise>} + * @throws {Error} + */ +const getMonitorsByUserIdForIncidents = async (req, res, next) => {}; + /** * Create a monitor * @async