feat: implement comprehensive notification engine with policies, preferences, and automated dispatching services
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user