From 551070a98b3987e9d76812d6392e6392b7f85b28 Mon Sep 17 00:00:00 2001 From: Zoe Chodosh Date: Fri, 24 Aug 2018 12:44:42 -0400 Subject: [PATCH] broadcast save event on publish (#601) * broadcast save event on publish * ignore package-lock changes --- lib/services/db.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/services/db.js b/lib/services/db.js index 40fa9a6c..0c3d209c 100644 --- a/lib/services/db.js +++ b/lib/services/db.js @@ -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);