Skip to content

Commit

Permalink
fix(storage): clean deleted contents from storage (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz authored Jun 7, 2021
1 parent 8b80fbc commit b9e1346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9e1346

Please sign in to comment.