Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/core/feed/endpoints_feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def get_news_image(
detail="The news does not exist",
)

return get_file_from_data(
return await get_file_from_data(
directory=news.image_directory,
filename=news.image_id,
raise_http_exception=True,
Expand Down
2 changes: 1 addition & 1 deletion app/core/groups/endpoints_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ async def read_user_profile_picture(
if not group:
raise HTTPException(status_code=404, detail="Group not found")

return get_file_from_data(
return await get_file_from_data(
directory="groups/logos",
filename=group_id,
default_asset="assets/images/default_profile_picture.png",
Expand Down
2 changes: 1 addition & 1 deletion app/modules/calendar/endpoints_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ async def get_event_image(
detail="You are not allowed to access this event",
)

return get_file_from_data(
return await get_file_from_data(
directory="event",
filename=event_id,
raise_http_exception=True,
Expand Down
Loading