diff --git a/api/blueprints/mail/retrieve/get.py b/api/blueprints/mail/retrieve/get.py index 93966f5..ab8bc5b 100644 --- a/api/blueprints/mail/retrieve/get.py +++ b/api/blueprints/mail/retrieve/get.py @@ -189,7 +189,7 @@ async def get_one_mail( # We check if the token that was used to fetch the mail is owned by this user: if not await token_check.is_authorized( - mongo_conn = current_app.data_mongo, + mongo_data_conn = current_app.data_mongo, user_info = CoreUserInfoModel(**kwargs["session_info"]), token_ids = [message.tokenId] ): return ResponseModel(