feat: clear ACUC cache endpoint based on team ID

This commit is contained in:
Gergő Móricz
2024-10-22 20:28:10 +02:00
parent 76c0073829
commit 6ed3104eb6
4 changed files with 31 additions and 2 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ function blocklistMiddleware(req: Request, res: Response, next: NextFunction) {
next();
}
function wrap(controller: (req: Request, res: Response) => Promise<any>): (req: Request, res: Response, next: NextFunction) => any {
export function wrap(controller: (req: Request, res: Response) => Promise<any>): (req: Request, res: Response, next: NextFunction) => any {
return (req, res, next) => {
controller(req, res)
.catch(err => next(err))