mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-07 08:21:08 +00:00
UBERF-8876 Clear account cache on contact transaction (#7431)
Some checks are pending
CI / test (push) Blocked by required conditions
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Some checks are pending
CI / test (push) Blocked by required conditions
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
224d003d64
commit
962f3816b9
@ -24,6 +24,7 @@ import core, {
|
|||||||
TxApplyIf,
|
TxApplyIf,
|
||||||
TxCUD,
|
TxCUD,
|
||||||
TxOperations,
|
TxOperations,
|
||||||
|
TxProcessor,
|
||||||
TxWorkspaceEvent,
|
TxWorkspaceEvent,
|
||||||
WithLookup,
|
WithLookup,
|
||||||
WorkspaceEvent,
|
WorkspaceEvent,
|
||||||
@ -824,12 +825,16 @@ export class GithubWorker implements IntegrationManager {
|
|||||||
// Handle tx
|
// Handle tx
|
||||||
const h = this._client.getHierarchy()
|
const h = this._client.getHierarchy()
|
||||||
for (const t of tx) {
|
for (const t of tx) {
|
||||||
if (h.isDerived(t._class, core.class.TxCUD)) {
|
if (TxProcessor.isExtendsCUD(t._class)) {
|
||||||
const cud = t as TxCUD<Doc>
|
const cud = t as TxCUD<Doc>
|
||||||
if (cud.objectClass === github.class.DocSyncInfo) {
|
if (cud.objectClass === github.class.DocSyncInfo) {
|
||||||
this.triggerSync()
|
this.triggerSync()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
if (cud.objectClass === contact.class.Person || cud.objectClass === contact.class.Channel) {
|
||||||
|
this.accountMap.clear()
|
||||||
|
break
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (h.isDerived(t._class, core.class.TxApplyIf)) {
|
if (h.isDerived(t._class, core.class.TxApplyIf)) {
|
||||||
const applyop = t as TxApplyIf
|
const applyop = t as TxApplyIf
|
||||||
|
Loading…
Reference in New Issue
Block a user