Skip to content

Commit

Permalink
fix: return url instead of object in get_temp_media_url
Browse files Browse the repository at this point in the history
  • Loading branch information
blenzi committed Apr 26, 2024
1 parent 2cab7c0 commit ecb101a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/endpoints/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,4 @@ async def get_temp_media_url(media_id: int) -> str:
media_instance = await check_media_registration(media_id)
# Check in bucket
temp_public_url = await s3_bucket.get_public_url(media_instance["bucket_key"])
return MediaUrl(url=temp_public_url)
return MediaUrl(url=temp_public_url).url

Check warning on line 200 in src/app/api/endpoints/media.py

View check run for this annotation

Codecov / codecov/patch

src/app/api/endpoints/media.py#L200

Added line #L200 was not covered by tests

0 comments on commit ecb101a

Please sign in to comment.