Skip to content

Commit 834a114

Browse files
committed
rename param to match
1 parent 58b3bee commit 834a114

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

templates/deno/src/query.ts.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export class Query {
3636
static cursorBefore = (documentId: string): string =>
3737
`cursorBefore("${documentId}")`;
3838

39-
static limit = (value: number): string =>
40-
`limit(${value})`;
39+
static limit = (limit: number): string =>
40+
`limit(${limit})`;
4141

42-
static offset = (value: number): string =>
43-
`offset(${value})`;
42+
static offset = (offset: number): string =>
43+
`offset(${offset})`;
4444

4545
private static addQuery = (attribute: string, method: string, value: QueryTypes): string =>
4646
value instanceof Array

templates/node/lib/query.js.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ class Query {
3232
static cursorBefore = (documentId) =>
3333
`cursorBefore("${documentId}")`;
3434

35-
static limit = (value) =>
36-
`limit(${value})`;
35+
static limit = (limit) =>
36+
`limit(${limit})`;
3737

38-
static offset = (value) =>
39-
`offset(${value})`;
38+
static offset = (offset) =>
39+
`offset(${offset})`;
4040

4141
static addQuery = (attribute, method, value) =>
4242
value instanceof Array

templates/web/src/query.ts.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ export class Query {
3636
static cursorBefore = (documentId: string): string =>
3737
`cursorBefore("${documentId}")`;
3838

39-
static limit = (value: number): string =>
40-
`limit(${value})`;
39+
static limit = (limit: number): string =>
40+
`limit(${limit})`;
4141

42-
static offset = (value: number): string =>
43-
`offset(${value})`;
42+
static offset = (offset: number): string =>
43+
`offset(${offset})`;
4444

4545
private static addQuery = (attribute: string, method: string, value: QueryTypes): string =>
4646
value instanceof Array

0 commit comments

Comments
 (0)