From ab827e3c2fb48cd061ad356d21cdb0da126b1011 Mon Sep 17 00:00:00 2001 From: Florent Vilmart Date: Fri, 22 Apr 2016 11:46:27 -0400 Subject: [PATCH] Forces delete resolution (#1595) --- src/Controllers/HooksController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Controllers/HooksController.js b/src/Controllers/HooksController.js index 7e97fd54..0c4ae4f7 100644 --- a/src/Controllers/HooksController.js +++ b/src/Controllers/HooksController.js @@ -59,7 +59,9 @@ export class HooksController { } _removeHooks(query) { - return this.database.destroy(DefaultHooksCollectionName, query); + return this.database.destroy(DefaultHooksCollectionName, query).then(() => { + return Promise.resolve({}); + }); } saveHook(hook) {