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

Method appendTimeEntry

src/api/TaskNotesAPI.ts:2228–2239  ·  view source on GitHub ↗
(
		path: string,
		entry: TimeEntry,
		context?: TaskNotesMutationContext
	)

Source from the content-addressed store, hash-verified

2226 }
2227
2228 private async appendTimeEntry(
2229 path: string,
2230 entry: TimeEntry,
2231 context?: TaskNotesMutationContext
2232 ): Promise<TaskInfo> {
2233 const task = await this.requireTask(path);
2234 const timeEntries = [
2235 ...(task.timeEntries ?? []).map((existing) => ({ ...existing })),
2236 { ...entry },
2237 ];
2238 return this.updateTask(task.path, { timeEntries }, context);
2239 }
2240
2241 private async deleteTimeEntry(
2242 path: string,

Callers 1

TaskNotesAPIClass · 0.95

Calls 2

requireTaskMethod · 0.95
updateTaskMethod · 0.95

Tested by

no test coverage detected