fix: pagination
This commit is contained in:
1 parent
881a335c90
commit
4fa8abea30
1 file changed
+2
-2
@@ -14,7 +14,7 @@ data class Paginated<T: EntityI<*>>(
|
||||
|
||||
init {
|
||||
if (offset < 0) error("offset must be greather or equal than 0")
|
||||
if (limit < 1) error("limit must be greather than 1")
|
||||
if (total < 1) error("total must be greather or equal than 0")
|
||||
if (limit < 1) error("limit must be greather or equal than 1")
|
||||
if (total < 0) error("total must be greather or equal than 0")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user