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