mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
This reverts commit e6d7d3a15407104311a30fd6871ca149a45bf4da.
This commit is contained in:
parent
e6d7d3a154
commit
06af42da5b
@ -460,6 +460,10 @@ export class Database extends EventEmitter implements AsyncEmitter {
|
||||
}
|
||||
|
||||
if (options.underscored) {
|
||||
if (lodash.get(options, 'sortable.scopeKey')) {
|
||||
options.sortable.scopeKey = snakeCase(options.sortable.scopeKey);
|
||||
}
|
||||
|
||||
if (lodash.get(options, 'indexes')) {
|
||||
// change index fields to snake case
|
||||
options.indexes = options.indexes.map((index) => {
|
||||
|
@ -171,7 +171,6 @@ export class SortField extends Field {
|
||||
};
|
||||
|
||||
const scopeKey = this.options.scopeKey;
|
||||
|
||||
if (scopeKey) {
|
||||
const groups = await this.collection.repository.find({
|
||||
attributes: [scopeKey],
|
||||
|
Loading…
x
Reference in New Issue
Block a user