From 410a786497dc14d797c0b50d14c98f4cf15588d4 Mon Sep 17 00:00:00 2001 From: Shane C Date: Tue, 27 Aug 2024 11:49:49 -0400 Subject: [PATCH] fix app.Use --- api/bun.lockb | Bin 43568 -> 43568 bytes api/src/middlewares/log.ts | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/bun.lockb b/api/bun.lockb index 345d1e27a955d03e2999f5c71dfbf5654deaea44..b0b791d86f331b49053124ca4fac7a1394d13a9f 100755 GIT binary patch delta 25 fcmdmRg=qs2X_PY>P1Y=*!D6mwz_9sfdA1P%gxU#z delta 25 fcmdmRg=qs2X_PY>PSz}+!D6OoXuA1mdA1P%h6f3= diff --git a/api/src/middlewares/log.ts b/api/src/middlewares/log.ts index c55811e..5e13d81 100644 --- a/api/src/middlewares/log.ts +++ b/api/src/middlewares/log.ts @@ -1,7 +1,7 @@ -import { Request } from "express"; +import { Request, Response } from "express"; import { app, logger } from ".."; -app.use('*', (req: Request, next: () => void) => { +app.use('*', (req: Request, _res: Response, next: () => void) => { logger.debug(`${req.method} ${req.url}`); next(); });