notification added in with subs :D
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { createServer } from "node:http";
|
||||
import os from "node:os";
|
||||
import { startNotifications } from "notification/notification.controller.js";
|
||||
import { createNotifications } from "notification/notifications.master.js";
|
||||
import createApp from "./app.js";
|
||||
import { db } from "./db/db.controller.js";
|
||||
import { dbCleanup } from "./db/dbCleanup.controller.js";
|
||||
@@ -47,6 +49,10 @@ const start = async () => {
|
||||
dbCleanup("jobs", 30),
|
||||
);
|
||||
createCronJob("logsCleanup", "0 15 5 * * *", () => dbCleanup("logs", 120));
|
||||
|
||||
// one shots only needed to run on server startups
|
||||
createNotifications();
|
||||
startNotifications();
|
||||
}, 5 * 1000);
|
||||
|
||||
server.listen(port, async () => {
|
||||
|
||||
Reference in New Issue
Block a user