From b9e1346409f919d11b3cf0cb1a4a9b5ccdcbc57a Mon Sep 17 00:00:00 2001 From: Ahad Birang Date: Mon, 7 Jun 2021 16:58:56 +0430 Subject: [PATCH] fix(storage): clean deleted contents from storage (#382) --- src/core/storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/storage.ts b/src/core/storage.ts index 0a26517a4..97b700024 100644 --- a/src/core/storage.ts +++ b/src/core/storage.ts @@ -154,7 +154,7 @@ export const docusDriver = defineDriver((options: DriverOptions) => { // remove item from database if (event === 'remove') { - await items.removeWhere(doc => doc.key === key) + await items.removeWhere(doc => doc.source === key) } // Revalidate childrent of content because parent has changed