From c2509388d3d5193396af5cc68e2c9e47b5c8bc20 Mon Sep 17 00:00:00 2001 From: Josh Moore Date: Sat, 21 Oct 2023 22:38:19 -0600 Subject: [PATCH] fix: add proper type here (excuse to do a [docker build] ) --- backend/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.ts b/backend/app.ts index a8e9d57..feeecf4 100644 --- a/backend/app.ts +++ b/backend/app.ts @@ -41,7 +41,7 @@ const assMetaMiddleware = (port: number, proxied: boolean): RequestHandler => /** * Custom middleware to verify user access */ -const loginRedirectMiddleware = async (req: Request, res: Response, next: NextFunction) => { +const loginRedirectMiddleware: RequestHandler = async (req: Request, res: Response, next: NextFunction) => { // If auth doesn't exist yet, make the user login if (!req.session.ass?.auth) {