feat: implement comprehensive notification engine with policies, preferences, and automated dispatching services

This commit is contained in:
2026-07-21 18:53:11 -03:00
parent 40090cdec5
commit 10ca449f88
82 changed files with 10249 additions and 171 deletions
+4 -4
View File
@@ -1,7 +1,7 @@
import dotenv from "dotenv";
import logger, { logDone, logError, logIntent } from "./config/logger.js";
import mongoose from "mongoose";
import { Notifications } from "./Models/Notifications/Notifications.js";
import { JobProcessor } from "./Models/Jobs/JobProcessor.js";
logIntent("Iniciando Notification Sender.");
@@ -28,10 +28,10 @@ mongoose
.then(() => {
const start = async () => {
logDone("Conexión a MongoDB establecida correctamente.");
logger.info("🚀 Notification Sender running");
logger.info("🚀 Notification Sender running (job-based polling)");
const worker = new Notifications();
await worker.start();
const processor = new JobProcessor();
await processor.startPolling();
};
start();