fix: transaction params

This commit is contained in:
chareice 2023-04-09 12:19:59 +08:00
parent 55c7bb5cf5
commit 0c17d609fa

View File

@ -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 = [];