diff --git a/src/base.repo.ts b/src/base.repo.ts index 93f41d1..9181bee 100755 --- a/src/base.repo.ts +++ b/src/base.repo.ts @@ -235,14 +235,12 @@ export class BaseRepository { /** * Updates multiple documents that match a particular query - * @param query MongoDB query object or id string + * @param query MongoDB query object * @param update Update onbject */ - updateAll(query: string | object, update: any): Promise { - const _query = this.getQuery(query); - + updateAll(query: object, update: any): Promise { return new Promise((resolve, reject) => { - this.model.updateMany(_query, update, (err, result) => { + this.model.updateMany(query, update, (err, result) => { if (err) return reject(err); resolve(result); });