Skip to content

Commit

Permalink
Add missing `deleteOne api method to multi-tenant repo.
Browse files Browse the repository at this point in the history
  • Loading branch information
alrik authored and baranga committed Mar 27, 2023
1 parent 1e63483 commit f95dd8f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/repositories/lib/mongo-multi-realm.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ module.exports = ({collection, createModel, generateId}) => {
return mongoRepo.deleteMany(query);
},

/**
* @inheritDoc
*/
async deleteOne(query) {
assertRealmId(query.realmId);

return mongoRepo.deleteOne(query);
},

/**
* @inheritDoc
*/
Expand Down

0 comments on commit f95dd8f

Please sign in to comment.