admin -> dashboard
This commit is contained in:
@@ -138,10 +138,10 @@ function oomEvent(eventId, app, addon, containerId, event, callback) {
|
||||
let title, message;
|
||||
if (app) {
|
||||
title = `The application at ${app.fqdn} ran out of memory.`;
|
||||
message = `The application has been restarted automatically. If you see this notification often, consider increasing the [memory limit](${settings.adminOrigin()}/#/app/${app.id}/resources)`;
|
||||
message = `The application has been restarted automatically. If you see this notification often, consider increasing the [memory limit](${settings.dashboardOrigin()}/#/app/${app.id}/resources)`;
|
||||
} else if (addon) {
|
||||
title = `The ${addon.name} service ran out of memory`;
|
||||
message = `The service has been restarted automatically. If you see this notification often, consider increasing the [memory limit](${settings.adminOrigin()}/#/services)`;
|
||||
message = `The service has been restarted automatically. If you see this notification often, consider increasing the [memory limit](${settings.dashboardOrigin()}/#/services)`;
|
||||
}
|
||||
|
||||
forEachAdmin({ skip: [] }, function (admin, done) {
|
||||
@@ -243,7 +243,7 @@ function backupFailed(eventId, taskId, errorMessage, callback) {
|
||||
assert.strictEqual(typeof callback, 'function');
|
||||
|
||||
forEachSuperadmin({ skip: [] }, function (admin, callback) {
|
||||
mailer.backupFailed(admin.email, errorMessage, `${settings.adminOrigin()}/logs.html?taskId=${taskId}`);
|
||||
mailer.backupFailed(admin.email, errorMessage, `${settings.dashboardOrigin()}/logs.html?taskId=${taskId}`);
|
||||
add(admin.id, eventId, 'Backup failed', `Backup failed: ${errorMessage}. Logs are available [here](/logs.html?taskId=${taskId}).`, callback);
|
||||
}, callback);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user