mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 22:12:44 +03:00
account works
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
590124f668
commit
669c73b590
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user