mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: add await
This commit is contained in:
parent
0a6a9572d1
commit
725fce7c4c
@ -15,7 +15,7 @@ export class LaanaMessageActionHandler {
|
||||
let cacheSize = 0;
|
||||
try {
|
||||
for (const cacheId of fileCacheIds) {
|
||||
cacheSize += fs.statSync(this.laana.utils.file.toLocalPath(cacheId)).size;
|
||||
cacheSize += fs.statSync(await this.laana.utils.file.toLocalPath(cacheId)).size;
|
||||
}
|
||||
} catch (e) {
|
||||
this.core.context.logger.logWarn('文件缓存大小计算失败', e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user