Remove usages of non-adaptive collection inside DatabaseController.

This commit is contained in:
Nikita Lutsenko
2016-03-07 19:26:40 -08:00
parent 8d10447c9f
commit a163327ac9
3 changed files with 74 additions and 68 deletions

View File

@@ -71,7 +71,7 @@ export class HooksController {
_removeHooks(query) {
return this.getCollection().then(collection => {
return collection.remove(query);
return collection.deleteMany(query);
}).then(() => {
return {};
});