Browse Source
Merge pull request #1479 from gre/fix-reset-to-await-the-save
Fix Clean Cache to actual clean the account operations
master
Gaëtan Renaudeau
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
src/helpers/reset.js
|
|
@ -19,17 +19,17 @@ function reload() { |
|
|
|
} |
|
|
|
|
|
|
|
export async function hardReset() { |
|
|
|
resetLibcoreDatabase() |
|
|
|
disableDBMiddleware() |
|
|
|
db.resetAll() |
|
|
|
await delay(500) |
|
|
|
resetLibcoreDatabase() |
|
|
|
reload() |
|
|
|
} |
|
|
|
|
|
|
|
export async function softReset({ cleanAccountsCache }: *) { |
|
|
|
resetLibcoreDatabase() |
|
|
|
cleanAccountsCache() |
|
|
|
await delay(500) |
|
|
|
db.cleanCache() |
|
|
|
await db.cleanCache() |
|
|
|
resetLibcoreDatabase() |
|
|
|
reload() |
|
|
|
} |
|
|
|