feat: Update SoundPlayed model to accept nullable user_id and enhance sound tracking in MusicPlayerService
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user