From 692a38c9731f89f8d7d18f1bd8eecceefe175e2c Mon Sep 17 00:00:00 2001 From: Carl Downing Date: Sun, 30 Jul 2023 10:18:38 -0700 Subject: [PATCH] consistency --- CommonServer/Services/NotificationService.ts | 6 +++--- Docs/architecture.md | 2 +- Notification/Services/CallService.ts | 4 ++-- Notification/Services/SmsService.ts | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CommonServer/Services/NotificationService.ts b/CommonServer/Services/NotificationService.ts index 37cac00760..6209c4afca 100644 --- a/CommonServer/Services/NotificationService.ts +++ b/CommonServer/Services/NotificationService.ts @@ -62,11 +62,11 @@ export class NotificationService extends BaseService { (project.name || ''), `We have tried to recharge your SMS and Call balance for project - ${ project.name || '' - } and failed. We could not find a payment method for the project. Please add a payment method in project settings.` + } and failed. We could not find a payment method for the project. Please add a payment method in Project Settings.` ); } throw new BadDataException( - 'No payment methods found for the project. Please add a payment method in project settings to continue.' + 'No payment methods found for the project. Please add a payment method in Project Settings to continue.' ); } @@ -127,7 +127,7 @@ export class NotificationService extends BaseService { (project.name || ''), `We have tried recharged your SMS and Call balance for project - ${ project.name || '' - } and failed. Please make sure your payment method is upto date and has sufficient balance. You can add new payment methods in project settings.` + } and failed. Please make sure your payment method is upto date and has sufficient balance. You can add new payment methods in Project Settings.` ); logger.error(err); throw err; diff --git a/Docs/architecture.md b/Docs/architecture.md index a13804c55e..7ed9540a47 100644 --- a/Docs/architecture.md +++ b/Docs/architecture.md @@ -83,7 +83,7 @@ In this case, the user will need to install the server monitor agent in the targ For every component, the user can define the different criteria that allow the backend to decide whether this component is working properly, degraded, or down. -In addition to the name, type, and criteria, the user can choose the category to which the resource should belong. The categories can be managed through the same dashboard under project settings. +In addition to the name, type, and criteria, the user can choose the category to which the resource should belong. The categories can be managed through the same dashboard under Project Settings. #### Status pages diff --git a/Notification/Services/CallService.ts b/Notification/Services/CallService.ts index be693c0fc4..96d01323b7 100644 --- a/Notification/Services/CallService.ts +++ b/Notification/Services/CallService.ts @@ -85,7 +85,7 @@ export default class CallService { if (!project.enableCallNotifications) { callLog.status = CallStatus.Error; - callLog.statusMessage = `Call notifications are not enabled for this project. Please enable Call notifications in project settings.`; + callLog.statusMessage = `Call notifications are not enabled for this project. Please enable Call notifications in Project Settings.`; await CallLogService.create({ data: callLog, @@ -109,7 +109,7 @@ export default class CallService { project.id!, 'Call notifications not enabled for ' + (project.name || ''), - `We tried to make a call to ${callRequest.to.toString()}.

This Call was not sent because call notifications are not enabled for this project. Please enable call notifications in project settings.` + `We tried to make a call to ${callRequest.to.toString()}.

This Call was not sent because call notifications are not enabled for this project. Please enable call notifications in Project Settings.` ); } return; diff --git a/Notification/Services/SmsService.ts b/Notification/Services/SmsService.ts index 6deb0fa22b..e0fac14f08 100644 --- a/Notification/Services/SmsService.ts +++ b/Notification/Services/SmsService.ts @@ -82,7 +82,7 @@ export default class SmsService { if (!project.enableSmsNotifications) { smsLog.status = SmsStatus.Error; - smsLog.statusMessage = `SMS notifications are not enabled for this project. Please enable SMS notifications in project settings.`; + smsLog.statusMessage = `SMS notifications are not enabled for this project. Please enable SMS notifications in Project Settings.`; await SmsLogService.create({ data: smsLog, @@ -105,7 +105,7 @@ export default class SmsService { project.id!, 'SMS notifications not enabled for ' + (project.name || ''), - `We tried to send an SMS to ${to.toString()} with message:

${message}

This SMS was not sent because SMS notifications are not enabled for this project. Please enable SMS notifications in project settings.` + `We tried to send an SMS to ${to.toString()} with message:

${message}

This SMS was not sent because SMS notifications are not enabled for this project. Please enable SMS notifications in Project Settings.` ); } return;