@live-change/content-frontend 0.2.2 → 0.2.3
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.
- package/package.json +2 -2
- package/server/init.js +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/content-frontend",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "lcli memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"author": "",
|
|
67
67
|
"license": "ISC",
|
|
68
68
|
"description": "",
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "a91ef8d26ea58cabf9fef85347826ccd32096f8d"
|
|
70
70
|
}
|
package/server/init.js
CHANGED
|
@@ -7,7 +7,7 @@ module.exports = async function(services) {
|
|
|
7
7
|
'Test User 1', 'test1@test.com', 'Testy123', 'u1', ['writer'])
|
|
8
8
|
|
|
9
9
|
const pageId = 'one'
|
|
10
|
-
const documentId = App.encodeIdentifier(['
|
|
10
|
+
const documentId = App.encodeIdentifier(['content_Page', 'one'])
|
|
11
11
|
const snapshotId = App.encodeIdentifier([documentId, (0).toFixed().padStart(10, '0')])
|
|
12
12
|
|
|
13
13
|
const documentContent = {
|
|
@@ -41,6 +41,8 @@ module.exports = async function(services) {
|
|
|
41
41
|
|
|
42
42
|
await services.prosemirror.models.Document.create({
|
|
43
43
|
id: documentId,
|
|
44
|
+
ownerType: 'content_Page',
|
|
45
|
+
owner: 'one',
|
|
44
46
|
type: 'rich',
|
|
45
47
|
purpose: 'page',
|
|
46
48
|
version: 0,
|