From cb7dee9bf8d06d9e8257e1d604388f4fccc70027 Mon Sep 17 00:00:00 2001 From: Maxence Date: Wed, 29 Jan 2025 17:14:51 +0000 Subject: [PATCH] fix test friend --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 895ad96..73ba199 100644 --- a/app/main.py +++ b/app/main.py @@ -215,7 +215,7 @@ async def get_friend(id: str, current_user: User = Depends(get_current_user)): if friend is None: friend_not_found() - return serializers.friend_serialize(friend,False if friend['user_id']==current_user._id else True) + return serializers.friend_serialize(friend,False if friend['user_id']==current_user.uid else True) @app.post( path="/friend/add",