MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / updateLastSyncTime

Method updateLastSyncTime

src/main/core/sync/syncEngine.ts:704–710  ·  view source on GitHub ↗

* 更新最后同步时间

()

Source from the content-addressed store, hash-verified

702 * 更新最后同步时间
703 */
704 private async updateLastSyncTime(): Promise<void> {
705 const config = await this.loadSyncConfig()
706 if (config) {
707 config.lastSyncTime = Date.now()
708 await this.saveSyncConfig(config)
709 }
710 }
711
712 /**
713 * 直接更新文档的同步状态(使用 metaDb)

Callers 2

performSyncMethod · 0.95

Calls 2

loadSyncConfigMethod · 0.95
saveSyncConfigMethod · 0.95

Tested by

no test coverage detected