Skip to content

Commit

Permalink
Addressed PR comment - default display node id
Browse files Browse the repository at this point in the history
  • Loading branch information
nmlinaric committed Apr 6, 2020
1 parent a81cbe3 commit 450cd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/NodeUptimeNotificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export class NodeUptimeNotificationService {
logger.info(`Sending mail to: ${user.email} for node: ${node.id}::${node.address}`);
if (config.env != "dev") {
logger.info(`Going to send email to ${user.id}.`);
const nodeName = node.name ? node.name : '';
const nodeName = node.name ? node.name : node.id;
await this.emailService.sendEmailNotification(
user,
{NODE: `${nodeName} - ${node.url}`},
Expand Down

0 comments on commit 450cd10

Please sign in to comment.