mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
QFix: LastTx event check fix (#7598)
Some checks are pending
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
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
Some checks are pending
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
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
a2cbc2a5fb
commit
9c7ce99361
@ -22,7 +22,7 @@ import { MeasureContext, MeasureMetricsContext } from './measurements'
|
||||
import { ModelDb } from './memdb'
|
||||
import type { DocumentQuery, FindOptions, FindResult, FulltextStorage, Storage, TxResult, WithLookup } from './storage'
|
||||
import { SearchOptions, SearchQuery, SearchResult } from './storage'
|
||||
import { Tx, TxCUD, type TxWorkspaceEvent } from './tx'
|
||||
import { Tx, TxCUD, WorkspaceEvent, type TxWorkspaceEvent } from './tx'
|
||||
import { toFindResult } from './utils'
|
||||
|
||||
/**
|
||||
@ -249,7 +249,7 @@ export async function createClient (
|
||||
client.updateFromRemote(...tx)
|
||||
}
|
||||
for (const t of tx) {
|
||||
if (t._class === core.class.TxWorkspaceEvent) {
|
||||
if (t._class === core.class.TxWorkspaceEvent && (t as TxWorkspaceEvent).event === WorkspaceEvent.LastTx) {
|
||||
lastTx = (t as TxWorkspaceEvent).params.lastTx
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user