remove settings.dashboardOrigin

This commit is contained in:
Girish Ramakrishnan
2023-08-04 22:10:14 +05:30
parent 4cdf37b060
commit 67ee82abb9
7 changed files with 16 additions and 19 deletions
+3 -3
View File
@@ -136,10 +136,10 @@ async function oomEvent(eventId, containerId, app, addonName /*, event*/) {
} else {
title = `The ${addonName} service ran out of memory`;
}
message = `The service has been restarted automatically. If you see this notification often, consider increasing the [memory limit](${settings.dashboardOrigin()}/#/services)`;
message = `The service has been restarted automatically. If you see this notification often, consider increasing the [memory limit](https://${settings.dashboardFqdn()}/#/services)`;
} else if (app) {
title = `The app at ${app.fqdn} ran out of memory.`;
message = `The app has been restarted automatically. If you see this notification often, consider increasing the [memory limit](${settings.dashboardOrigin()}/#/app/${app.id}/resources)`;
message = `The app has been restarted automatically. If you see this notification often, consider increasing the [memory limit](https://${settings.dashboardFqdn()}/#/app/${app.id}/resources)`;
}
await add(title, message, { eventId });
@@ -220,7 +220,7 @@ async function backupFailed(eventId, taskId, errorMessage) {
const superadmins = await users.getSuperadmins();
for (const superadmin of superadmins) {
await mailer.backupFailed(superadmin.email, errorMessage, `${settings.dashboardOrigin()}/logs.html?taskId=${taskId}`);
await mailer.backupFailed(superadmin.email, errorMessage, `https://${settings.dashboardFqdn()}/logs.html?taskId=${taskId}`);
}
}