feat: Update SoundPlayed model to accept nullable user_id and enhance sound tracking in MusicPlayerService

This commit is contained in:
JSC
2025-07-12 15:56:13 +02:00
parent 842e1dff13
commit 6bbf3dce66
2 changed files with 63 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ class SoundPlayed(db.Model):
@classmethod
def create_play_record(
cls,
user_id: int,
user_id: int | None,
sound_id: int,
*,
commit: bool = True,