Skip to content

Commit

Permalink
Added missing decode
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenthoms committed Sep 22, 2023
1 parent 17dc003 commit c564675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/services/graph_access/graph_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def get_user_profile_photo(self) -> str | None:
response = await self._request("https://graph.microsoft.com/v1.0/me/photo/$value")

if response.status_code == 200:
return base64.b64encode(response.content)
return base64.b64encode(response.content).decode("utf-8")
else:
return None

Expand Down

0 comments on commit c564675

Please sign in to comment.