([FromBody] StopTimerDto dto, [FromQuery] int taskId)
| 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) |
nothing calls this directly
no test coverage detected