code cleanup

This commit is contained in:
2025-07-22 11:03:41 +05:30
parent 496b73ceda
commit 089c034dd6
2 changed files with 0 additions and 3 deletions

View File

@@ -10,7 +10,6 @@ import { ChangeEvent, dbEvents } from "../realtime";
import { permitPipeline } from "../utils/pipeline";
import { AuthenticatedUser } from "../auth";
import mongoose from "mongoose";
import { noteModel } from "../note/note.schema";
import { getUser } from "../user/user.service";
import { createNote } from "../note/note.service";
import { createAlert } from "../alert/alert.service";

View File

@@ -21,8 +21,6 @@ export async function realTimeRoutes(fastify: FastifyInstance) {
});
dbEvents.on("alert", (event: AlertEvent, requiredClaims: Claim[]) => {
console.log(event);
if (hasValidClaims(req.user, requiredClaims)) {
let alertFlag = false;