Skip to content

Commit

Permalink
delete s3 cache on early return
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jun 30, 2024
1 parent a1c1b26 commit e40878e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/usecases/akatsuki_beatmaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ async def _update_from_osu_api(old_beatmap: AkatsukiBeatmap) -> AkatsukiBeatmap
extra={"beatmap": old_beatmap.model_dump()},
)
await akatsuki_beatmaps.delete_by_md5(old_beatmap.beatmap_md5)
await aws_s3.delete_object(f"/beatmaps/{old_beatmap.beatmap_id}.osu")
return None

new_beatmap = _parse_akatsuki_beatmap_from_osu_api_v1_response(
Expand Down

0 comments on commit e40878e

Please sign in to comment.