Skip to content

Commit

Permalink
chore: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
edobrb committed Aug 23, 2022
1 parent 2332ab1 commit 6fa41fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dal/drivers/no-sql/mongodb/dao.mongodb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class AbstractMongoDBDAO<T extends MongoDBDAOGenerics> extends AbstractDA
const filter = await this.buildFilter(params.filter)
const projection = isEmptyProjection(params.projection) ? { [this.dbIdField]: true } : this.buildProjection(params.projection)
const sort = this.buildSort(params.sorts)
/*if (sort.length > 0 && sort.map((v) => v[0]).includes(this.dbIdField)) { // see #288
/*if (sort.length > 0 && !sort.map((v) => v[0]).includes(this.dbIdField)) { // see #288
sort.push([this.dbIdField, 1])
}*/
const options = { projection, sort, skip: params.skip, limit: params.limit ?? this.pageSize } as FindOptions
Expand Down

0 comments on commit 6fa41fd

Please sign in to comment.