修复脚本和日志列表获取软链接循环失败

This commit is contained in:
whyour
2024-04-21 21:59:02 +08:00
parent 6ca28190b0
commit 445dee00f7
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -515,7 +515,7 @@ export default class CronService {
files.map(async (x) => ({
filename: x,
directory: relativeDir.replace(config.logPath, ''),
time: (await fs.stat(`${dir}/${x}`)).mtime.getTime(),
time: (await fs.lstat(`${dir}/${x}`)).mtime.getTime(),
})),
)
).sort((a, b) => b.time - a.time);