forked from mtusi2026/mtusi2026lab2
feat-(all routes, models, migration completed)
This commit is contained in:
@@ -10,8 +10,8 @@ from src.api.repositories.core import DatabaseManager
|
||||
|
||||
|
||||
class MessageRepo(DatabaseManager):
|
||||
def __init__(self, session: AsyncSession, model: Message):
|
||||
super().__init__(session, model)
|
||||
def __init__(self, session: AsyncSession):
|
||||
super().__init__(session, Message)
|
||||
|
||||
async def create(self, chat_id: uuid.UUID, sender_id: uuid.UUID, text: str) -> Message:
|
||||
return await super().create(chat_id=chat_id, sender_id=sender_id, text=text)
|
||||
|
||||
Reference in New Issue
Block a user