proiect finalizat
This commit is contained in:
@@ -4,6 +4,16 @@ from fastapi import HTTPException
|
||||
|
||||
|
||||
async def get_conversation_url(id_user1: str, id_user2: str):
|
||||
"""
|
||||
Retrieves the conversation identifier
|
||||
|
||||
Args:
|
||||
id_user1 (str)
|
||||
id_user2 (str)
|
||||
|
||||
Returns:
|
||||
(str) : conversation_url
|
||||
"""
|
||||
if get_user_by_id(id_user1) is None or get_user_by_id(id_user2) is None:
|
||||
raise HTTPException(status_code=404, detail="Users not in the system.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user