From 0c17d609fac5f3f91d80f74c5bc2e2c2eeb9f8c7 Mon Sep 17 00:00:00 2001 From: chareice Date: Sun, 9 Apr 2023 12:19:59 +0800 Subject: [PATCH] fix: transaction params --- packages/core/database/src/fields/sort-field.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/database/src/fields/sort-field.ts b/packages/core/database/src/fields/sort-field.ts index 3dadbddc07..c186128a9c 100644 --- a/packages/core/database/src/fields/sort-field.ts +++ b/packages/core/database/src/fields/sort-field.ts @@ -119,12 +119,12 @@ export class SortField extends Field { }; const scopeKey = this.options.scopeKey; - if (scopeKey) { const groups = await this.collection.repository.find({ attributes: [scopeKey], group: [scopeKey], raw: true, + transaction, }); const needInitGroups = [];