修复获取日志列表

This commit is contained in:
whyour
2023-11-03 21:31:48 +08:00
parent c1d6a0a40b
commit 23781d8b34
+1 -1
View File
@@ -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,