Update server/routers/api-router.js

Co-authored-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
Karel Krýda 2022-05-30 15:32:19 +02:00 committed by GitHub
parent 25262cfb91
commit 6d0683b055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,11 @@ router.get("/api/status-page/:slug", cache("5 minutes"), async (request, respons
});
// Status Page - Maintenance List
/**
* Get list of maintenances
* @param {number} statusPageId ID of status page to get maintenance for
* @returns {Object} Object representing maintenances sanitized for public
*/
async function getMaintenanceList(statusPageId) {
try {
const publicMaintenanceList = [];