fixed error in /updates/fetch api endpoint if case there are no site updates
This commit is contained in:
parent
9d79ed1a1a
commit
960665a4ad
1 changed files with 3 additions and 3 deletions
|
@ -53,10 +53,10 @@ class UserDataSchema(Schema):
|
||||||
|
|
||||||
|
|
||||||
class FetchUpdatesResponseSchema(Schema):
|
class FetchUpdatesResponseSchema(Schema):
|
||||||
last_site_update: PositiveInt = APIField(
|
last_site_update: Optional[PositiveInt] = APIField(
|
||||||
title="ID of the last site update",
|
title="ID of the last site update",
|
||||||
description="If this ID changes, it means a major code change may have occured. "
|
description="If this ID increments, it means a major code change may have occurred. "
|
||||||
"A reload of all data is recommended.",
|
"A reload of all data is recommended. If there never has been a site update, this is `Null`.",
|
||||||
example=1,
|
example=1,
|
||||||
)
|
)
|
||||||
last_map_update: NonEmptyStr = APIField(
|
last_map_update: NonEmptyStr = APIField(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue