Skip to content

Commit 02a44c9

Browse files
authored
chore: several minor fixes (#323)
1 parent 2659bc8 commit 02a44c9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/runtime/src/client/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const NUMERIC_FIELD_TYPES = ['Int', 'Float', 'BigInt', 'Decimal'];
1111
/**
1212
* Client API methods that are not supported in transactions.
1313
*/
14-
export const TRANSACTION_UNSUPPORTED_METHODS = ['$transaction', '$disconnect', '$use'] as const;
14+
export const TRANSACTION_UNSUPPORTED_METHODS = ['$transaction', '$connect', '$disconnect', '$use'] as const;
1515

1616
/**
1717
* Prefix for JSON field used to store joined delegate rows.

packages/runtime/src/client/crud/operations/group-by.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@ export class GroupByOperationHandler<Schema extends SchemaDef> extends BaseOpera
3232
query = this.dialect.buildSkipTake(query, skip, take);
3333

3434
// orderBy
35-
if (parsedArgs.orderBy) {
36-
query = this.dialect.buildOrderBy(query, this.model, this.model, parsedArgs.orderBy, negateOrderBy);
37-
}
35+
query = this.dialect.buildOrderBy(query, this.model, this.model, parsedArgs.orderBy, negateOrderBy);
3836

37+
// having
3938
if (parsedArgs.having) {
4039
query = query.having(() => this.dialect.buildFilter(this.model, this.model, parsedArgs.having));
4140
}

0 commit comments

Comments
 (0)