fix(nbstore): fix v1 doc storage timestamp (#10282)

This commit is contained in:
EYHN
2025-02-19 16:04:37 +08:00
committed by GitHub
parent 53cada4640
commit c39a93e1fd
3 changed files with 31 additions and 8 deletions

View File

@@ -199,7 +199,8 @@ export class DocSyncPeer {
throwIfAborted(signal);
if (
!this.remote.isReadonly &&
(pushedClock === null || pushedClock !== clock?.timestamp)
clock &&
(pushedClock === null || pushedClock !== clock.timestamp)
) {
await this.jobs.pullAndPush(docId, signal);
} else {