From 647a7e89b6e573b920106edb2e937fb5a259c78d Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Sun, 18 Jan 2026 12:44:12 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- server/notification-providers/discord.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/server/notification-providers/discord.js b/server/notification-providers/discord.js index c5321ddca..0e2d8a8a7 100644 --- a/server/notification-providers/discord.js +++ b/server/notification-providers/discord.js @@ -192,13 +192,16 @@ 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 - * + * 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 + * * @param {number} timeInSeconds The time in seconds to format a duration for * @returns {string} The formatted duration - */ - formatDuration(timeInSeconds){ + */ + /** + * @param timeInSeconds + */ + formatDuration(timeInSeconds) { const hours = Math.floor(durationSeconds / 3600); const minutes = Math.floor((durationSeconds % 3600) / 60); const seconds = durationSeconds % 60;