mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 12:35:02 +02:00
Reload when upgrade (#5942)
This commit is contained in:
@@ -38,8 +38,6 @@ import core, {
|
||||
TxApplyIf,
|
||||
TxHandler,
|
||||
TxResult,
|
||||
TxWorkspaceEvent,
|
||||
WorkspaceEvent,
|
||||
generateId,
|
||||
toFindResult
|
||||
} from '@hcengineering/core'
|
||||
@@ -356,10 +354,7 @@ class Connection implements ClientConnection {
|
||||
const txArr = Array.isArray(resp.result) ? (resp.result as Tx[]) : [resp.result as Tx]
|
||||
|
||||
for (const tx of txArr) {
|
||||
if (
|
||||
(tx?._class === core.class.TxWorkspaceEvent && (tx as TxWorkspaceEvent).event === WorkspaceEvent.Upgrade) ||
|
||||
tx?._class === core.class.TxModelUpgrade
|
||||
) {
|
||||
if (tx?._class === core.class.TxModelUpgrade) {
|
||||
console.log('Processing upgrade', this.workspace, this.email)
|
||||
this.onUpgrade?.()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user