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
@@ -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)