@nocobase/plugin-field-sort 1.5.6 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,12 +8,12 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "1.5.6",
11
+ "@nocobase/client": "1.5.7",
12
12
  "lodash": "4.17.21",
13
- "@nocobase/database": "1.5.6",
14
- "@nocobase/actions": "1.5.6",
15
- "@nocobase/server": "1.5.6",
16
- "@nocobase/data-source-manager": "1.5.6",
13
+ "@nocobase/database": "1.5.7",
14
+ "@nocobase/actions": "1.5.7",
15
+ "@nocobase/server": "1.5.7",
16
+ "@nocobase/data-source-manager": "1.5.7",
17
17
  "sequelize": "6.35.2",
18
- "@nocobase/lock-manager": "1.5.6"
18
+ "@nocobase/lock-manager": "1.5.7"
19
19
  };
@@ -42,11 +42,11 @@ class PluginFieldSortServer extends import_server.Plugin {
42
42
  class SortFieldClass extends import_sort_field.SortField {
43
43
  }
44
44
  SortFieldClass.lockManager = lockManager;
45
- this.app.db.registerFieldTypes({
46
- sort: SortFieldClass
47
- });
48
45
  this.app.dataSourceManager.beforeAddDataSource((dataSource) => {
49
46
  if (dataSource.collectionManager instanceof import_data_source_manager.SequelizeCollectionManager) {
47
+ dataSource.collectionManager.db.registerFieldTypes({
48
+ sort: SortFieldClass
49
+ });
50
50
  dataSource.resourceManager.registerActionHandlers({ move: import_action.move });
51
51
  }
52
52
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-field-sort",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "license": "AGPL-3.0",
5
5
  "displayName": "Collection field: Sort",
6
6
  "displayName.zh-CN": "数据表字段:排序",
@@ -20,5 +20,5 @@
20
20
  "keywords": [
21
21
  "Collection fields"
22
22
  ],
23
- "gitHead": "fa06d43465ba8ea02258078c5a1e44f3861f260d"
23
+ "gitHead": "f2a1df02d686d3564249e85370d3c23bddd08edc"
24
24
  }