fix: created_at type in MessageOut
All checks were successful
Deploy Tracker / deploy (push) Successful in 7s
All checks were successful
Deploy Tracker / deploy (push) Successful in 7s
This commit is contained in:
parent
b777623320
commit
d8b2fb4b51
@ -1,6 +1,7 @@
|
|||||||
"""Chats and messages API."""
|
"""Chats and messages API."""
|
||||||
|
|
||||||
import uuid
|
import uuid
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
from fastapi import APIRouter, Depends, HTTPException, Query
|
from fastapi import APIRouter, Depends, HTTPException, Query
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
@ -37,7 +38,7 @@ class MessageOut(BaseModel):
|
|||||||
sender_id: uuid.UUID | None
|
sender_id: uuid.UUID | None
|
||||||
sender_name: str | None
|
sender_name: str | None
|
||||||
content: str
|
content: str
|
||||||
created_at: str
|
created_at: datetime
|
||||||
|
|
||||||
model_config = {"from_attributes": True}
|
model_config = {"from_attributes": True}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user