MCPcopy
hub / github.com/callumalpass/tasknotes / shouldUsePendingTaskInfo

Method shouldUsePendingTaskInfo

src/utils/TaskManager.ts:302–315  ·  view source on GitHub ↗
(
		pendingTaskInfo: TaskInfo,
		metadataTaskInfo: TaskInfo | null
	)

Source from the content-addressed store, hash-verified

300 }
301
302 private shouldUsePendingTaskInfo(
303 pendingTaskInfo: TaskInfo,
304 metadataTaskInfo: TaskInfo | null
305 ): boolean {
306 if (!metadataTaskInfo) {
307 return true;
308 }
309
310 if (pendingTaskInfo.dateModified) {
311 return metadataTaskInfo.dateModified !== pendingTaskInfo.dateModified;
312 }
313
314 return false;
315 }
316
317 /**
318 * Extract task info from native frontmatter

Callers 3

handleFileChangedMethod · 0.95
getTaskInfoMethod · 0.95
getCachedTaskInfoSyncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected