From 62709861bcfd7d9c275e5aaa9de793c742802801 Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Mon, 25 Sep 2023 15:51:49 +0800 Subject: [PATCH] fix(api): missing validation --- .../gotson/komga/interfaces/api/rest/dto/SettingsUpdateDto.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/dto/SettingsUpdateDto.kt b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/dto/SettingsUpdateDto.kt index d7276be97b..a8203673fb 100644 --- a/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/dto/SettingsUpdateDto.kt +++ b/komga/src/main/kotlin/org/gotson/komga/interfaces/api/rest/dto/SettingsUpdateDto.kt @@ -5,7 +5,7 @@ import jakarta.validation.constraints.Positive data class SettingsUpdateDto( val deleteEmptyCollections: Boolean? = null, val deleteEmptyReadLists: Boolean? = null, - @Positive + @get:Positive val rememberMeDurationDays: Long? = null, val renewRememberMeKey: Boolean? = null, )