Skip to content

Commit

Permalink
fix: read refresh by default
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-bechara committed Aug 31, 2022
1 parent 370cf41 commit 93c4ea8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/orm/orm.repository/orm.repository.read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export abstract class OrmReadRepository<Entity> extends OrmBaseRepository<Entity
let readEntities: Entity[];

options.populate ??= this.repositoryOptions.defaultPopulate as any ?? false;
options.refresh ??= true;

try {
readEntities = await this.entityManager.find(this.entityName, params, options as FindOptions<Entity, P>);
Expand Down

0 comments on commit 93c4ea8

Please sign in to comment.