refactor(soundboard): remove unused client information from play_sound method
This commit is contained in:
@@ -53,15 +53,9 @@ def play_sound(sound_id: int):
|
|||||||
user = get_current_user()
|
user = get_current_user()
|
||||||
user_id = int(user["id"]) if user else None
|
user_id = int(user["id"]) if user else None
|
||||||
|
|
||||||
# Get client information
|
|
||||||
ip_address = request.remote_addr
|
|
||||||
user_agent = request.headers.get("User-Agent")
|
|
||||||
|
|
||||||
success = vlc_service.play_sound(
|
success = vlc_service.play_sound(
|
||||||
sound_id=sound_id,
|
sound_id=sound_id,
|
||||||
user_id=user_id,
|
user_id=user_id,
|
||||||
ip_address=ip_address,
|
|
||||||
user_agent=user_agent,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if success:
|
if success:
|
||||||
|
|||||||
Reference in New Issue
Block a user