Files
Checkmate/server/src/worker/reactors/reactor.notification.ts
T

12 lines
591 B
TypeScript
Raw Normal View History

2026-06-10 13:12:51 -07:00
import { INotificationsService } from "@/domain/notifications/notification.service.js";
import { IMonitorReactor } from "@/worker/reactors/reactor.interface.js";
import { MonitorEvaluation } from "@/worker/worker.interface.js";
export class NotificationReactor implements IMonitorReactor {
readonly name = "notification";
readonly blocking = false;
constructor(private notificationService: INotificationsService) {}
react = async (evaluation: MonitorEvaluation) => {
2026-09-23 13:38:02 -07:00
await this.notificationService.handleNotifications(evaluation.monitor, evaluation.check, evaluation.decision);
2026-06-10 13:12:51 -07:00
};
}