Renamed skip to offset

This commit is contained in:
Constantin Graf
2024-10-01 15:38:24 +02:00
committed by Gregor Vostrak
parent d200de54a8
commit fcba96fbf6
3 changed files with 6 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ class TimeEntryIndexRequest extends FormRequest
'max:500',
],
// Skip the first n time entries (default: 0)
'skip' => [
'offset' => [
'integer',
'min:0',
],
@@ -154,8 +154,8 @@ class TimeEntryIndexRequest extends FormRequest
return $this->has('limit') ? (int) $this->validated('limit', 100) : 100;
}
public function getSkip(): int
public function getOffset(): int
{
return $this->has('skip') ? (int) $this->validated('skip', 0) : 0;
return $this->has('offset') ? (int) $this->validated('offset', 0) : 0;
}
}