Skip to content

Commit

Permalink
Feat: 팀 상세페이지와 메인페이지에서 is_like 위치 통일
Browse files Browse the repository at this point in the history
  • Loading branch information
fnzksxl committed Sep 2, 2024
1 parent f2dcefa commit 7da5a03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wtnt/core/utils/team.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,10 @@ def get_detail_response(team_data, user_id):

leader_id = team_data["leader_info"]["id"]
team_id = team_data["id"]

team_data["is_like"] = False if user_id is None else TeamResponse.is_like(team_id, user_id)
return {
"team": team_data,
"is_leader": TeamResponse.is_leader(leader_id, user_id),
"is_like": False if user_id is None else TeamResponse.is_like(team_id, user_id),
}


Expand Down

0 comments on commit 7da5a03

Please sign in to comment.