Skip to content

Commit 1b09f2d

Browse files
TriPSsGP4cK
andauthored
refactor(query-typeorm): Update packages/query-typeorm/src/services/typeorm-query.service.ts
Co-authored-by: GP4cK <[email protected]>
1 parent 6433141 commit 1b09f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/query-typeorm/src/services/typeorm-query.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export class TypeOrmQueryService<Entity>
115115
qb.withDeleted()
116116
}
117117

118-
// Check if we have any relation that could cause the same record to be returned twice, if not than we create
118+
// Check if we have any relation that could cause the same record to be returned twice, if not then we create
119119
// our own count as TypeORM still decides to add "DISTINCT" to it, which makes it slow
120120
if (qb.expressionMap.joinAttributes.some((join) => join.isMany)) {
121121
// If we have relations than do what TypeORM does

0 commit comments

Comments
 (0)