@steedos/standard-object-database 2.4.7 → 2.4.8-beta.2

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.
@@ -325,6 +325,6 @@ form:
325
325
  initialValues: !<tag:yaml.org,2002:js/function> |-
326
326
  function () {
327
327
  const objectApiName = this.doc.object_name;
328
- const res = Steedos.authRequest(`/service/api/@${objectApiName}/uiSchemaTemplate`, { type: 'get', async: false});
328
+ const res = Steedos.authRequest("/service/api/@" + objectApiName +"/uiSchemaTemplate", { type: 'get', async: false});
329
329
  return res || {}
330
330
  }
@@ -241,6 +241,7 @@ function loadObject(doc, oldDoc) {
241
241
  loadObjectTriggers(doc);
242
242
  loadObjectPermission(doc);
243
243
  }
244
+ objectql.getSteedosSchema().broker.broadcast("$packages.statisticsActivatedPackages", {});
244
245
  }
245
246
  })
246
247
 
@@ -366,6 +367,7 @@ function reloadObject(changeLog){
366
367
  } catch (error) {
367
368
  console.log('error', error);
368
369
  }
370
+ objectql.getSteedosSchema().broker.broadcast("$packages.statisticsActivatedPackages", {});
369
371
  }
370
372
  })
371
373
  }
@@ -1,8 +1,8 @@
1
1
  /*
2
2
  * @Author: baozhoutao@steedos.com
3
3
  * @Date: 2022-08-05 14:20:24
4
- * @LastEditors: baozhoutao@steedos.com
5
- * @LastEditTime: 2022-11-29 11:59:40
4
+ * @LastEditors: sunhaolin@hotoa.com
5
+ * @LastEditTime: 2023-03-27 17:08:55
6
6
  * @Description:
7
7
  */
8
8
  const express = require('express');
@@ -16,7 +16,7 @@ const callObjectServiceAction = async function(actionName, userSession, data){
16
16
  }
17
17
 
18
18
  const getUISchema = async function(objectName, userSession){
19
- return await callObjectServiceAction(`@${objectName}.getRecordView`, userSession);
19
+ return await callObjectServiceAction(`objectql.getRecordView`, userSession, { objectName });
20
20
  }
21
21
 
22
22
  router.post('/api/listview/filters', core.requireAuthentication, async function (req, res) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-object-database",
3
- "version": "2.4.7",
3
+ "version": "2.4.8-beta.2",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -15,5 +15,5 @@
15
15
  },
16
16
  "repository": {},
17
17
  "license": "MIT",
18
- "gitHead": "a58a5e537a2ff15dda57bf1c31d00f8a9ae19879"
18
+ "gitHead": "75409cde3a71561adfff93fbb36a7dc1ce5252d5"
19
19
  }