(query = {})
| 71 | } |
| 72 | |
| 73 | _getHooks(query = {}) { |
| 74 | return this.database.find(DefaultHooksCollectionName, query).then(results => { |
| 75 | return results.map(result => { |
| 76 | delete result.objectId; |
| 77 | return result; |
| 78 | }); |
| 79 | }); |
| 80 | } |
| 81 | |
| 82 | _removeHooks(query) { |
| 83 | return this.database.destroy(DefaultHooksCollectionName, query).then(() => { |
no test coverage detected