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
parent
commit
21f6cb520f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/helpers/reset.js

6
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()
}

Loading…
Cancel
Save