fix: failed to add tasks due to long room id

fix #267
fix #271
This commit is contained in:
acgnhiki
2024-06-19 22:40:39 +08:00
parent da2d4715d1
commit 2cc69db88e

View File

@@ -315,7 +315,7 @@ class TaskOptions(BaseModel):
class TaskSettings(TaskOptions):
# must use the real room id rather than the short room id!
room_id: Annotated[int, Field(ge=1, le=99999999)]
room_id: Annotated[int, Field(ge=1, lt=2**32)]
enable_monitor: bool = True
enable_recorder: bool = True