mirror of
https://github.com/revanced/revanced-polling-api.git
synced 2025-04-29 22:24:26 +02:00
fix(ballot): fix ballot model
This commit is contained in:
parent
25f4589512
commit
802163ae38
@ -38,4 +38,4 @@ class BallotCastedResponse(BaseModel):
|
||||
BaseModel (pydantic.BaseModel): BaseModel from pydantic
|
||||
"""
|
||||
|
||||
casted: bool
|
||||
cast: bool
|
||||
|
@ -41,7 +41,7 @@ async def cast_ballot(request: Request, response: Response,
|
||||
|
||||
if stored:
|
||||
await client.ban_token(Authorize.get_jti())
|
||||
return {"created": stored}
|
||||
return {"cast": stored}
|
||||
else:
|
||||
raise HTTPException(status_code=500, detail={
|
||||
"error": GeneralErrors.InternalServerError().error,
|
||||
|
Loading…
x
Reference in New Issue
Block a user