From 30f7b4898758ea5422983d00a3d3a3597e7e1524 Mon Sep 17 00:00:00 2001 From: buzzinJohnnyBoi Date: Mon, 15 Jul 2024 17:04:16 -0400 Subject: [PATCH] updated comments and ran linter on inferDuration --- server/model/maintenance.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/model/maintenance.js b/server/model/maintenance.js index c1643d5a..7111a18c 100644 --- a/server/model/maintenance.js +++ b/server/model/maintenance.js @@ -312,10 +312,10 @@ class Maintenance extends BeanModel { } /** - * Calculate the maintenance duration - * @returns {number} - */ - + * Calculate the maintenance duration + * @param {number} customDuration - The custom duration in milliseconds. + * @returns {number} The inferred duration in milliseconds. + */ inferDuration(customDuration) { // Check if duration is still in the window. If not, use the duration from the current time to the end of the window if (customDuration > 0) {