MOBILE-3325 settings: Fix cache entries count

main
Pau Ferrer Ocaña 2020-03-12 11:22:03 +01:00
parent f37280a12a
commit fee7e200bc
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ export class CoreSettingsHelper {
let totalEntries = 0;
await Promise.all(clearTables.map(async (name) =>
totalEntries += await site.getDb().countRecords(name)
totalEntries = await site.getDb().countRecords(name) + totalEntries
));
return totalEntries;