Skip to content

Commit 4705536

Browse files
committed
Prettier
1 parent 48dacab commit 4705536

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

src/PgConnectionArgFilterOperatorsPlugin.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,18 +1106,18 @@ export const PgConnectionArgFilterOperatorsPlugin: GraphileConfig.Plugin = {
11061106
} = arrayLike
11071107
? connectionFilterArrayOperators
11081108
: rangeLike
1109-
? connectionFilterRangeOperators
1110-
: enumLike
1111-
? connectionFilterEnumOperators
1112-
: {
1113-
...standardOperators,
1114-
...(sortable ? sortOperators : null),
1115-
...(inetLike ? inetOperators : null),
1116-
...(jsonLike ? jsonbOperators : null),
1117-
...(hstoreLike ? hstoreOperators : null),
1118-
...(textLike ? patternMatchingOperators : null),
1119-
...(textLike ? insensitiveOperators : null),
1120-
};
1109+
? connectionFilterRangeOperators
1110+
: enumLike
1111+
? connectionFilterEnumOperators
1112+
: {
1113+
...standardOperators,
1114+
...(sortable ? sortOperators : null),
1115+
...(inetLike ? inetOperators : null),
1116+
...(jsonLike ? jsonbOperators : null),
1117+
...(hstoreLike ? hstoreOperators : null),
1118+
...(textLike ? patternMatchingOperators : null),
1119+
...(textLike ? insensitiveOperators : null),
1120+
};
11211121

11221122
const operatorFields = Object.entries(operatorSpecs).reduce(
11231123
(memo: { [fieldName: string]: any }, [name, spec]) => {
@@ -1292,8 +1292,8 @@ export function makeApplyFromOperatorSpec(
12921292
? attribute.expression($where.alias)
12931293
: sql`${$where.alias}.${sql.identifier(attributeName)}`
12941294
: expression
1295-
? expression
1296-
: $where.alias;
1295+
? expression
1296+
: $where.alias;
12971297
const sourceCodec = codec ?? attribute.codec;
12981298

12991299
const [sqlIdentifier, identifierCodec] = resolveSqlIdentifier
@@ -1322,7 +1322,7 @@ export function makeApplyFromOperatorSpec(
13221322
const resolvedInput = resolveInput ? resolveInput(value) : value;
13231323
const inputCodec = resolveInputCodec
13241324
? resolveInputCodec(codec ?? attribute.codec)
1325-
: codec ?? attribute.codec;
1325+
: (codec ?? attribute.codec);
13261326

13271327
const sqlValue = resolveSqlValue
13281328
? resolveSqlValue($where, value, inputCodec)

src/PgConnectionArgFilterPlugin.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,12 @@ export const PgConnectionArgFilterPlugin: GraphileConfig.Plugin = {
204204
codec.arrayOfCodec
205205
? "Array"
206206
: codec.rangeOfCodec
207-
? "Range"
208-
: isEnumCodec(codec)
209-
? "Enum"
210-
: codec.domainOfCodec
211-
? "Domain"
212-
: "Scalar";
207+
? "Range"
208+
: isEnumCodec(codec)
209+
? "Enum"
210+
: codec.domainOfCodec
211+
? "Domain"
212+
: "Scalar";
213213

214214
// Respect `connectionFilterArrays` config option
215215
if (

0 commit comments

Comments
 (0)