Missed to add a line in jsdoc.

This commit is contained in:
Owaise Imdad committed 2025-06-21 00:25:57 +05:30
1 parent ba00e9afff
commit ecb1ca4517
1 file changed
+8
@@ -22,6 +22,14 @@ const createNetworkCheck = async (networkCheckData) => {
}
};
/**
* Retrieves a list of network checks for a specific monitor, sorted by most recent.
* @async
* @param {string} monitorId - The ID of the monitor to retrieve checks for.
* @param {number} [limit=100] - The maximum number of checks to return. Defaults to 100.
* @returns {Promise<Array<object>>} A promise that resolves to an array of network check documents.
* @throws {Error} Throws an error if the database operation fails.
*/
const getNetworkChecksByMonitorId = async (monitorId, limit = 100) => {
try {
const networkChecks = await NetworkCheck.find({ monitorId })