MCPcopy Create free account
hub / github.com/GmpABR/NexusFlow / StopTimer

Method StopTimer

backend/Controllers/TimeLogsController.cs:35–43  ·  view source on GitHub ↗
([FromBody] StopTimerDto dto, [FromQuery] int taskId)

Source from the content-addressed store, hash-verified

33 }
34
35 [HttpPost("stop")]
36 public async Task<IActionResult> StopTimer([FromBody] StopTimerDto dto, [FromQuery] int taskId)
37 {
38 var log = await _taskService.StopTimerAsync(taskId, GetUserId(), dto.StoppedAt);
39 if (log == null) return NotFound(new { message = "No running timer found for this task." });
40
41 await NotifyTaskUpdated(taskId);
42 return Ok(log);
43 }
44
45 [HttpPost("manual")]
46 public async Task<IActionResult> AddManualTimeLog([FromBody] AddManualTimeLogDto dto)

Callers

nothing calls this directly

Calls 1

StopTimerAsyncMethod · 0.45

Tested by

no test coverage detected