mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 20:39:03 +00:00
Merge remote-tracking branch 'origin/develop' into staging
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
commit
0bc17cf9c3
@ -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