adminforth 1.3.30 → 1.3.31

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.
@@ -42,7 +42,7 @@ class MongoConnector extends AdminForthBaseConnector implements IAdminForthDataS
42
42
  };
43
43
 
44
44
  async discoverFields(resource) {
45
- return resource.columns.reduce((acc, col) => {
45
+ return resource.columns.filter((col) => !col.virtual).reduce((acc, col) => {
46
46
  if (!col.type) {
47
47
  throw new Error(`Type is not defined for column ${col.name} in resource ${resource.table}`);
48
48
  }
@@ -46,7 +46,7 @@ class MongoConnector extends AdminForthBaseConnector {
46
46
  }
47
47
  discoverFields(resource) {
48
48
  return __awaiter(this, void 0, void 0, function* () {
49
- return resource.columns.reduce((acc, col) => {
49
+ return resource.columns.filter((col) => !col.virtual).reduce((acc, col) => {
50
50
  if (!col.type) {
51
51
  throw new Error(`Type is not defined for column ${col.name} in resource ${resource.table}`);
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "1.3.30",
3
+ "version": "1.3.31",
4
4
  "description": "OpenSource Vue3 powered forth-generation admin panel",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",