From 23781d8b3421b30b6f043182a14cda4eb1e59052 Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 3 Nov 2023 21:31:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/api/log.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/api/log.ts b/back/api/log.ts index 562671a4..97c435e4 100644 --- a/back/api/log.ts +++ b/back/api/log.ts @@ -15,7 +15,7 @@ export default (app: Router) => { route.get('/', async (req: Request, res: Response, next: NextFunction) => { const logger: Logger = Container.get('logger'); try { - const result = readDirs(config.logPath, config.logPath, blacklist); + const result = await readDirs(config.logPath, config.logPath, blacklist); res.send({ code: 200, data: result,