Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/node name #139

Merged
merged 3 commits into from
Apr 6, 2020
Merged

Fix/node name #139

merged 3 commits into from
Apr 6, 2020

Conversation

nmlinaric
Copy link
Member

Added check if node name is defined before proceeding to sending email notification.

Resolves #137 Check for node name before sending email

@nmlinaric nmlinaric requested a review from morrigan April 6, 2020 06:32
@@ -103,9 +103,10 @@ 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 : '';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Default on frontend is Node ${node.id} so we can use that here as well

@morrigan morrigan merged commit 7d76ef9 into master Apr 6, 2020
@morrigan morrigan deleted the fix/node-name branch April 6, 2020 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check for node name before sending email
2 participants