diff --git a/backend/app/api/v1/messages.py b/backend/app/api/v1/messages.py index 1661341..f2a012f 100644 --- a/backend/app/api/v1/messages.py +++ b/backend/app/api/v1/messages.py @@ -422,13 +422,7 @@ async def update_message( .options(selectinload(Message.labels)) ) message = refreshed.scalar_one() - return MessageResponse.model_validate(message) - - -@router.get("/{message_id}/attachments", response_model=list[AttachmentResponse]) -async def list_attachments( - message_id: uuid.UUID, - current_user: CurrentUser, + return MessageResponse.model_validate(messa db: DB, ) -> list[AttachmentResponse]: """Elenca gli allegati di un messaggio.""" diff --git a/backend/app/notifications/__init__.py b/backend/app/notifications/__init__.py index 089f831..2a45687 100644 --- a/backend/app/notifications/__init__.py +++ b/backend/app/notifications/__init__.py @@ -1 +1 @@ -# Modulo notifiche – mittenti multi-canale +-# Modulo notifiche – mittenti multi-canale diff --git a/backend/app/services/notification_service.py b/backend/app/services/notification_service.py index 699f397..cdee678 100644 --- a/backend/app/services/notification_service.py +++ b/backend/app/services/notification_service.py @@ -1,4 +1,4 @@ -""" +is""" Servizio Notifiche Multi-canale – CRUD canali, regole, log. Nota: la cifratura AES-256-GCM di config_enc avviene qui usando