Skip to content

Commit

Permalink
fix(crud): TypeOrm Cache was not working
Browse files Browse the repository at this point in the history
  • Loading branch information
rewiko committed Apr 2, 2021
1 parent bbea082 commit 9018e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/crud-typeorm/src/typeorm-crud.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export class TypeOrmCrudService<T> extends CrudService<T> {
// set cache
/* istanbul ignore else */
if (options.query.cache && parsed.cache !== 0) {
builder.cache(builder.getQueryAndParameters(), options.query.cache);
builder.cache(options.query.cache);
}

return builder;
Expand Down

0 comments on commit 9018e0d

Please sign in to comment.