Files
Checkmate/server/src/domain/notifications/providers/utils.ts
T

14 lines
586 B
TypeScript
Raw Normal View History

2026-06-09 12:34:15 -07:00
import { IEmailService } from "@/service/emailService.js";
2026-09-23 11:46:58 -07:00
import type { NotificationMessage } from "@/domain/notifications/notification.type.js";
export const incidentUrl = (message: NotificationMessage): string => `${message.clientHost}/incidents/${message.monitor.id}`;
2026-03-04 17:32:50 +00:00
export const buildTestEmail = async (emailService: IEmailService) => {
2026-01-19 21:39:02 +00:00
const context = { testName: "Monitoring System" };
const html = await emailService.buildEmail("testEmailTemplate", context);
return html;
};
export const getTestMessage = () => {
return "This is a test notification from Checkmate";
};