Skip to content

Commit

Permalink
fix(lib): document update in database on change
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jul 31, 2020
1 parent 0627ab9 commit 4b3417e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/content/lib/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class Database extends Hookable {

logger.info(`Updated ${path.replace(this.cwd, '.')}`)
if (document) {
this.items.update({ ...document, ...item })
this.items.update({ $loki: document.$loki, meta: document.meta, ...item })
return
}
this.items.insert(item)
Expand Down

0 comments on commit 4b3417e

Please sign in to comment.