From f2443d676f46fd61f20553f31f733a0eb1280b2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Mon, 3 Sep 2018 17:52:49 +0200 Subject: [PATCH] Fix Clean Cache to actual clean the account operations --- src/helpers/reset.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/reset.js b/src/helpers/reset.js index 8c4fdfc5..198d354a 100644 --- a/src/helpers/reset.js +++ b/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() }