fix(ballot): fix ballot model

This commit is contained in:
Alexandre Teles 2023-01-05 20:54:26 -03:00
parent 25f4589512
commit 802163ae38
2 changed files with 2 additions and 2 deletions

View File

@ -38,4 +38,4 @@ class BallotCastedResponse(BaseModel):
BaseModel (pydantic.BaseModel): BaseModel from pydantic BaseModel (pydantic.BaseModel): BaseModel from pydantic
""" """
casted: bool cast: bool

View File

@ -41,7 +41,7 @@ async def cast_ballot(request: Request, response: Response,
if stored: if stored:
await client.ban_token(Authorize.get_jti()) await client.ban_token(Authorize.get_jti())
return {"created": stored} return {"cast": stored}
else: else:
raise HTTPException(status_code=500, detail={ raise HTTPException(status_code=500, detail={
"error": GeneralErrors.InternalServerError().error, "error": GeneralErrors.InternalServerError().error,