Skip to content

Commit

Permalink
chore: add invalidation notification on grant
Browse files Browse the repository at this point in the history
  • Loading branch information
Kan-A-Pesh committed Nov 5, 2024
1 parent 2e60ccd commit 2d7a995
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions routes/granters/grant.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -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"
Expand Down

0 comments on commit 2d7a995

Please sign in to comment.