MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / removeDependency

Method removeDependency

src/api/TaskNotesAPI.ts:2175–2187  ·  view source on GitHub ↗
(
		path: string,
		uid: string,
		context?: TaskNotesMutationContext
	)

Source from the content-addressed store, hash-verified

2173 }
2174
2175 private async removeDependency(
2176 path: string,
2177 uid: string,
2178 context?: TaskNotesMutationContext
2179 ): Promise<TaskInfo> {
2180 const task = await this.requireTask(path);
2181 const dependencies = (task.blockedBy ?? []).filter((dependency) => dependency.uid !== uid);
2182 return this.updateTask(
2183 task.path,
2184 { blockedBy: dependencies.length > 0 ? dependencies : undefined },
2185 context
2186 );
2187 }
2188
2189 private async startTime(
2190 path: string,

Callers 1

TaskNotesAPIClass · 0.95

Calls 2

requireTaskMethod · 0.95
updateTaskMethod · 0.95

Tested by

no test coverage detected