From 3cd0a5e9c6a166750de62d6f543bced2f162f9dc Mon Sep 17 00:00:00 2001 From: armanddidierjean <95971503+armanddidierjean@users.noreply.github.com> Date: Tue, 21 Apr 2026 17:24:05 +0200 Subject: [PATCH] fix: await get_file_from_data --- app/core/feed/endpoints_feed.py | 2 +- app/core/groups/endpoints_groups.py | 2 +- app/modules/calendar/endpoints_calendar.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/core/feed/endpoints_feed.py b/app/core/feed/endpoints_feed.py index d5a5bb33fb..b425b16b07 100644 --- a/app/core/feed/endpoints_feed.py +++ b/app/core/feed/endpoints_feed.py @@ -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, diff --git a/app/core/groups/endpoints_groups.py b/app/core/groups/endpoints_groups.py index 570b109488..a8fc6079a9 100644 --- a/app/core/groups/endpoints_groups.py +++ b/app/core/groups/endpoints_groups.py @@ -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", diff --git a/app/modules/calendar/endpoints_calendar.py b/app/modules/calendar/endpoints_calendar.py index 8f29f10a54..3509318cc7 100644 --- a/app/modules/calendar/endpoints_calendar.py +++ b/app/modules/calendar/endpoints_calendar.py @@ -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,