Skip to content

Commit f02c81d

Browse files
chore: Fix linter
1 parent 9bfe290 commit f02c81d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/query-graphql/src/types/connection/cursor/pager/pager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ const DEFAULT_PAGING_META = <DTO>(query: Query<DTO>): PagingMeta<DTO, OffsetPagi
1717
})
1818

1919
export class CursorPager<DTO> implements Pager<DTO, CursorPagerResult<DTO>> {
20-
constructor(readonly strategy: PagerStrategy<DTO>, private readonly enableFetchAllWithNegative?: boolean) {}
20+
constructor(
21+
readonly strategy: PagerStrategy<DTO>,
22+
private readonly enableFetchAllWithNegative?: boolean
23+
) {}
2124

2225
async page<Q extends CursorQueryArgsType<DTO>>(
2326
queryMany: QueryMany<DTO, Q>,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class TypeOrmQueryService<Entity>
8989
* @param query - The Query used to filter, page, and sort rows.
9090
*/
9191
public async query(query: Query<Entity>, opts?: QueryOptions<Entity>): Promise<Entity[]> {
92-
if (this.isMySQL && query.paging.offset && !query.paging?.limit) {
92+
if (this.isMySQL && query.paging?.offset && !query.paging?.limit) {
9393
query = { ...query, paging: { ...query.paging, limit: Number.MAX_SAFE_INTEGER } }
9494
}
9595
const qb = this.filterQueryBuilder.select(query)

0 commit comments

Comments
 (0)