mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-10 09:12:15 +01:00
Fixed duration in time entries index endpoint
This commit is contained in:
committed by
Constantin Graf
parent
0448ebc180
commit
f47b3cdf98
@@ -32,7 +32,7 @@ class TimeEntryResource extends BaseResource
|
||||
*/
|
||||
'end' => $this->formatDateTime($this->resource->end),
|
||||
/** @var int|null $duration Duration of time entry in seconds */
|
||||
'duration' => $this->resource->getDuration()?->seconds,
|
||||
'duration' => (int) $this->resource->getDuration()?->totalSeconds,
|
||||
/** @var string|null $description Description of time entry */
|
||||
'description' => $this->resource->description,
|
||||
/** @var string|null $task_id ID of task */
|
||||
|
||||
Reference in New Issue
Block a user