From bb66fee037c7028f472577205b46a4be36d671b8 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Sun, 18 Jan 2026 13:49:16 +0100 Subject: [PATCH] fix jsdoc --- server/notification-providers/discord.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/server/notification-providers/discord.js b/server/notification-providers/discord.js index 0e2d8a8a7..565d6bc94 100644 --- a/server/notification-providers/discord.js +++ b/server/notification-providers/discord.js @@ -191,20 +191,17 @@ class Discord extends NotificationProvider { } } - /* + /** * Format duration as human-readable string (e.g., "1h 23m", "45m 30s") - * TODO: Update below to Intl.DurationFormat("en", { style: "short" }).format(duration) once we are on a newer node version + * TODO: Update below to `Intl.DurationFormat("en", { style: "short" }).format(duration)` once we are on a newer node version * * @param {number} timeInSeconds The time in seconds to format a duration for * @returns {string} The formatted duration */ - /** - * @param timeInSeconds - */ formatDuration(timeInSeconds) { - const hours = Math.floor(durationSeconds / 3600); - const minutes = Math.floor((durationSeconds % 3600) / 60); - const seconds = durationSeconds % 60; + const hours = Math.floor(timeInSeconds / 3600); + const minutes = Math.floor((timeInSeconds % 3600) / 60); + const seconds = timeInSeconds % 60; const durationParts = []; if (hours > 0) {