From 9dbcca1cfc7b462725491a2b28b431737c72e7f1 Mon Sep 17 00:00:00 2001 From: jiisanda Date: Sun, 31 Dec 2023 20:47:46 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=B8minor=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/routes/documents/document_sharing.py | 5 ++--- app/db/repositories/documents/document_sharing.py | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/app/api/routes/documents/document_sharing.py b/app/api/routes/documents/document_sharing.py index ebcfef2..451818d 100644 --- a/app/api/routes/documents/document_sharing.py +++ b/app/api/routes/documents/document_sharing.py @@ -35,13 +35,13 @@ async def share_link_document( ): """ - Shares a document link with another user, sends a mail and notifies the receiver. + Shares a document link with another user, sends mail and notifies the receiver. Args: document (Union[str, UUID]): The ID or name of the document to be shared. share_request (SharingRequest): The sharing request containing the details of the sharing operation. repository (DocumentSharingRepository): The repository for managing document sharing. - auth_repository (AuthRepository): The repository for managing User related queries. + auth_repository (AuthRepository): The repository for managing User-related queries. metadata_repository (DocumentMetadataRepository): The repository for managing document metadata. notify_repository (NotifyRepo): The repository for managing notification user (TokenData): The token data of the authenticated user. @@ -159,7 +159,6 @@ async def share_document( key = await get_key(s3_url=get_document_metadata["s3_url"]) file = await document_repo.get_s3_file_object_body(key=key) - print("Here here") return await repository.share_document( filename=get_document_metadata["name"], diff --git a/app/db/repositories/documents/document_sharing.py b/app/db/repositories/documents/document_sharing.py index 626cb38..fad374c 100644 --- a/app/db/repositories/documents/document_sharing.py +++ b/app/db/repositories/documents/document_sharing.py @@ -219,7 +219,6 @@ async def share_document( temp_path = temp.name subject = f"{owner.username} shared a file with you using DocFlow" - print(temp_path) for mails in share_to: content = f""" Hello {mails}! @@ -229,7 +228,6 @@ async def share_document( Regards, DocFlow """ - print(f"mail to {mails}") mail_service(mail_to=mails, subject=subject, content=content, file_path=temp_path) if notify: