mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
consistency
This commit is contained in:
parent
f12e7550e3
commit
692a38c973
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
@ -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()}. <br/> <br/> 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()}. <br/> <br/> This Call was not sent because call notifications are not enabled for this project. Please enable call notifications in Project Settings.`
|
||||
);
|
||||
}
|
||||
return;
|
||||
|
@ -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: <br/> <br/> ${message} <br/> <br/> 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: <br/> <br/> ${message} <br/> <br/> This SMS was not sent because SMS notifications are not enabled for this project. Please enable SMS notifications in Project Settings.`
|
||||
);
|
||||
}
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user