fix(user): correct week_start validation range

This commit is contained in:
Xela 2026-04-21 01:30:53 +00:00 committed by kolaente
parent 67ad31c9c8
commit 2b76a6b3fe
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ type UserSettings struct {
// to tasks made directly in API and from clients.
DefaultProjectID int64 `json:"default_project_id"`
// The day when the week starts for this user. 0 = sunday, 1 = monday, etc.
WeekStart int `json:"week_start" valid:"range(0|7)"`
WeekStart int `json:"week_start" valid:"range(0|6)"`
// The user's language
Language string `json:"language"`
// The user's time zone. Used to send task reminders in the time zone of the user.