Merge branch 'develop' into feat/be/hardware-details

This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-01-02 09:58:19 -08:00
commit 25fd0f7055
16 files changed
+818 -406

No files matched your search

+13
View File
@@ -76,6 +76,19 @@ class MonitorController {
}
};
getUptimeDetailsById = async (req, res, next) => {
try {
const monitor = await this.db.getUptimeDetailsById(req);
return res.status(200).json({
success: true,
msg: successMessages.MONITOR_GET_BY_ID,
data: monitor,
});
} catch (error) {
next(handleError(error, SERVICE_NAME, "getMonitorDetailsById"));
}
};
/**
* Returns monitor stats for monitor with matching ID
* @async