Skip to content

Commit

Permalink
broadcast save event on publish (#601)
Browse files Browse the repository at this point in the history
* broadcast save event on publish

* ignore package-lock changes
  • Loading branch information
zonika authored and jonwinton committed Aug 24, 2018
1 parent a70cac7 commit 551070a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/services/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,9 @@ function triggerPlugins(method, args) {
});
} else {
plugins.executeHook('save', hookOps.put);
bus.publish('save', JSON.stringify(hookOps.put));
}

bus.publish('save', JSON.stringify(hookOps.put));
}
if (hookOps.del.length) {
plugins.executeHook('delete', hookOps.del);
Expand Down

0 comments on commit 551070a

Please sign in to comment.