account works

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-10 17:58:02 +02:00
parent 590124f668
commit 669c73b590
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -16,7 +16,7 @@
import { onDestroy } from 'svelte'
import { Doc, Ref, Class, DocumentQuery, FindOptions, Client, Hierarchy, Tx } from '@anticrm/core'
import { Doc, Ref, Class, DocumentQuery, FindOptions, Client, Hierarchy, Tx, getCurrentAccount } from '@anticrm/core'
import { TxOperations } from '@anticrm/core'
import { LiveQuery as LQ } from '@anticrm/query'
import core from '@anticrm/core'
@ -27,7 +27,7 @@ let client: Client & TxOperations
class UIClient extends TxOperations implements Client {
constructor (private readonly client: Client, private readonly liveQuery: LQ) {
super(client, core.account.System)
super(client, getCurrentAccount()._id)
}
getHierarchy (): Hierarchy {