fix: created_at type in MessageOut
All checks were successful
Deploy Tracker / deploy (push) Successful in 7s

This commit is contained in:
Markov 2026-02-15 23:48:26 +01:00
parent b777623320
commit d8b2fb4b51

View File

@ -1,6 +1,7 @@
"""Chats and messages API."""
import uuid
from datetime import datetime
from fastapi import APIRouter, Depends, HTTPException, Query
from pydantic import BaseModel
@ -37,7 +38,7 @@ class MessageOut(BaseModel):
sender_id: uuid.UUID | None
sender_name: str | None
content: str
created_at: str
created_at: datetime
model_config = {"from_attributes": True}