Files
Messenger/app/email/repository.py
2026-03-07 21:31:38 +03:00

8 lines
257 B
Python

from sqlalchemy.ext.asyncio import AsyncSession
from app.email.models import EmailLog
async def create_email_log(db: AsyncSession, *, recipient: str, subject: str, body: str) -> None:
db.add(EmailLog(recipient=recipient, subject=subject, body=body))