diff --git a/lib/main/server/utils/alerts.js b/lib/main/server/utils/alerts.js index 8f9df54..10dab50 100644 --- a/lib/main/server/utils/alerts.js +++ b/lib/main/server/utils/alerts.js @@ -62,7 +62,7 @@ SlackService.sendAlert = async function (message, type, messageExtraInfo, errsol let alertUrl; if (alertUrlData && alertUrlData.item && errsoleLogId) { const parsedAlertUrlValue = JSON.parse(alertUrlData.item.value); - alertUrl = parsedAlertUrlValue.url + '#/logs?errsole_log_id=' + errsoleLogId + '×tamp=' + new Date(new Date().getTime() + 1000).toISOString(); + alertUrl = parsedAlertUrlValue.url + '#/logs?errsole_log_id=' + errsoleLogId + '×tamp=' + new Date(new Date().getTime() + 2000).toISOString(); } const webhookUrl = parsedValue.url; const payload = blockKit(message, type, messageExtraInfo, alertUrl); @@ -162,7 +162,7 @@ EmailService.sendAlert = async function (message, type, messageExtraInfo, errsol let alertUrl; if (alertUrlData && alertUrlData.item && errsoleLogId) { const parsedAlertUrlValue = JSON.parse(alertUrlData.item.value); - alertUrl = parsedAlertUrlValue.url + '#/logs?errsole_log_id=' + errsoleLogId + '×tamp=' + new Date(new Date().getTime() + 1000).toISOString(); + alertUrl = parsedAlertUrlValue.url + '#/logs?errsole_log_id=' + errsoleLogId + '×tamp=' + new Date(new Date().getTime() + 2000).toISOString(); } // Construct the email subject and message let subject;