@steedos/service-pages 2.3.1 → 2.3.2-beta.10
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.
|
@@ -3,15 +3,13 @@
|
|
|
3
3
|
* @Date: 2022-04-04 16:34:28
|
|
4
4
|
* @Description:
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
const router = express.Router();
|
|
6
|
+
const router = require('@steedos/router').staticRouter();
|
|
8
7
|
const core = require('@steedos/core');
|
|
9
8
|
const ejs = require('ejs');
|
|
10
9
|
const fs = require('fs');
|
|
11
10
|
const _ = require('lodash');
|
|
12
11
|
const path = require('path');
|
|
13
12
|
const objectql = require('@steedos/objectql');
|
|
14
|
-
|
|
15
13
|
router.get('/api/pageDesign', core.requireAuthentication, async function (req, res) {
|
|
16
14
|
try {
|
|
17
15
|
res.set('Content-Type', 'text/html');
|
|
@@ -129,7 +129,11 @@ module.exports = {
|
|
|
129
129
|
if(_.find(actions, (action)=>{
|
|
130
130
|
return action.name === `${page.render_engine}.getInitSchema`
|
|
131
131
|
})){
|
|
132
|
-
const schema = await broker.call(`${page.render_engine}.getInitSchema`, {type: page.type, objectApiName: page.object_name}
|
|
132
|
+
const schema = await broker.call(`${page.render_engine}.getInitSchema`, {type: page.type, objectApiName: page.object_name}, {
|
|
133
|
+
meta:{
|
|
134
|
+
user: userSession
|
|
135
|
+
}
|
|
136
|
+
})
|
|
133
137
|
if(schema){
|
|
134
138
|
const now = new Date();
|
|
135
139
|
await objectql.getObject('page_versions').directInsert({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-pages",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2-beta.10",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "44b1617fea53eb016e82e72174e1d33bdbfe3fd1",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"ejs": "^3.1.8"
|
|
14
14
|
}
|