initial workspace contribution

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov
2021-08-19 09:36:12 +02:00
parent 5ce8370a63
commit dec3adefeb
14 changed files with 1380 additions and 8 deletions
+1 -1
View File
@@ -21,6 +21,6 @@
"@anticrm/core": "~0.6.10",
"@anticrm/platform": "~0.6.5",
"@anticrm/server-core": "~0.6.0",
"mongodb": "~4.1.0"
"mongodb": "^4.1.0"
}
}
+1 -1
View File
@@ -96,7 +96,7 @@ export async function createStorage (url: string, dbName: string): Promise<Serve
const hierarchy = new Hierarchy()
const triggers = new Triggers(new TxFactory(core.account.System))
const txes = await db.collection(DOMAIN_TX).find<Tx>({}).toArray()
const txes = await db.collection(DOMAIN_TX).find<Tx>({ objectSpace: core.space.Model }).toArray()
for (const tx of txes) {
hierarchy.tx(tx)
await triggers.tx(tx)