From 2d7a995fc2d8b9f2bc959901a6081d8df325d9d9 Mon Sep 17 00:00:00 2001 From: Kan-A-Pesh Date: Tue, 5 Nov 2024 15:17:20 +0100 Subject: [PATCH] chore: add invalidation notification on grant --- routes/granters/grant.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routes/granters/grant.ts b/routes/granters/grant.ts index b71265b..82c7ff0 100644 --- a/routes/granters/grant.ts +++ b/routes/granters/grant.ts @@ -1,5 +1,7 @@ import { znumber } from "@/env/extras"; import Status from "@/models/status"; +import SocketIO from "@/socket/socket"; +import { InvalidationSubject } from "@/socket/types"; import { NextFunction, Request, Response } from "express"; import { z } from "zod"; @@ -25,6 +27,10 @@ export default async function Route_Granters_Grant(req: Request, res: Response, }); } + // TODO: Matteo, implement plz + + SocketIO.sendInvalidationNotification(InvalidationSubject.LEADERBOARD); + return Status.send(req, next, { status: 500, error: "not.implemented.yet"