fix: add proper type here (excuse to do a [docker build] )

pull/239/head
Josh Moore 1 year ago
parent 4b68cb7c31
commit c2509388d3

@ -41,7 +41,7 @@ const assMetaMiddleware = (port: number, proxied: boolean): RequestHandler =>
/** /**
* Custom middleware to verify user access * 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 auth doesn't exist yet, make the user login
if (!req.session.ass?.auth) { if (!req.session.ass?.auth) {

Loading…
Cancel
Save