MCPcopy Create free account
hub / github.com/apitable/apitable / getLocalPendingChangesets

Method getLocalPendingChangesets

packages/core/src/sync/room.ts:632–642  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

630 }
631
632 private getLocalPendingChangesets() {
633 const localPendingChangeset: ILocalChangeset[] = [];
634 for (const resourceId of this.collaEngineMap.keys()) {
635 const collaEngine = this.collaEngineMap.get(resourceId)!;
636 const cs = collaEngine.getLocalPendingChangeset();
637 if (cs) {
638 localPendingChangeset.push(cs);
639 }
640 }
641 return localPendingChangeset;
642 }
643
644 // Clear all pending ops and pending changesets
645 private clearAllStorage() {

Callers 1

handleRejectCommitMethod · 0.95

Calls 4

keysMethod · 0.65
getMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected