aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-25 20:30:11 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-09-25 20:30:11 +0530
commit26fbdc43e2d0296219b065ad4003d138d0f4fcfa (patch)
treed409ebfa91ee797fdb535cb5d7f6768e080ed84a /src/api
parentNew Crowdin updates (#1986) (diff)
downloadferdium-app-26fbdc43e2d0296219b065ad4003d138d0f4fcfa.tar.gz
ferdium-app-26fbdc43e2d0296219b065ad4003d138d0f4fcfa.tar.zst
ferdium-app-26fbdc43e2d0296219b065ad4003d138d0f4fcfa.zip
fix: fix issue with new API of 'du' npm module
Diffstat (limited to 'src/api')
-rw-r--r--src/api/server/LocalApi.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/server/LocalApi.ts b/src/api/server/LocalApi.ts
index 71721bb0f..9a6ab2a82 100644
--- a/src/api/server/LocalApi.ts
+++ b/src/api/server/LocalApi.ts
@@ -31,7 +31,7 @@ export default class LocalApi {
31 async getAppCacheSize() { 31 async getAppCacheSize() {
32 const partitionsDir = getServicePartitionsDirectory(); 32 const partitionsDir = getServicePartitionsDirectory();
33 return new Promise((resolve, reject) => { 33 return new Promise((resolve, reject) => {
34 du(partitionsDir, (err: Error | null, size?: number | undefined) => { 34 du(partitionsDir, {}, (err: Error | null, size?: number | undefined) => {
35 if (err) reject(err); 35 if (err) reject(err);
36 36
37 debug('LocalApi::getAppCacheSize resolves', size); 37 debug('LocalApi::getAppCacheSize resolves', size);