mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
fix: add await
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user