This commit is contained in:
@@ -400,7 +400,6 @@ async def play_sound_with_vlc(
|
||||
await credit_service.validate_and_reserve_credits(
|
||||
current_user.id,
|
||||
CreditActionType.VLC_PLAY_SOUND,
|
||||
{"sound_id": sound_id, "sound_name": sound.name},
|
||||
)
|
||||
except InsufficientCreditsError as e:
|
||||
raise HTTPException(
|
||||
@@ -418,8 +417,8 @@ async def play_sound_with_vlc(
|
||||
await credit_service.deduct_credits(
|
||||
current_user.id,
|
||||
CreditActionType.VLC_PLAY_SOUND,
|
||||
success,
|
||||
{"sound_id": sound_id, "sound_name": sound.name},
|
||||
success=success,
|
||||
metadata={"sound_id": sound_id, "sound_name": sound.name},
|
||||
)
|
||||
|
||||
if not success:
|
||||
|
||||
Reference in New Issue
Block a user