Small fix to update song played
All checks were successful
Build / build (push) Successful in 50s

This commit is contained in:
2025-10-26 20:40:48 +01:00
parent a6294e46f2
commit 61cab73ffc
3 changed files with 7 additions and 9 deletions

View File

@@ -140,7 +140,7 @@ func GetRandomSongClassic() string {
if err != nil {
repo.RemoveBrokenSong(db.Ctx, song.Path)
log.Printf("Song not found, song '%s' deleted from game '%s' FileName: %v\n", song.SongName, gameData.GameName, song.FileName)
log.Printf("Song not found, song '%s' deleted from game '%s' FileName: %s\n", song.SongName, gameData.GameName, *song.FileName)
continue
}
@@ -149,7 +149,7 @@ func GetRandomSongClassic() string {
if err != nil || (song.FileName != nil && gameData.Path+*song.FileName != song.Path) {
//File not found
repo.RemoveBrokenSong(db.Ctx, song.Path)
log.Printf("Song not found, song '%s' deleted from game '%s' FileName: %v\n", song.SongName, gameData.GameName, song.FileName)
log.Printf("Song not found, song '%s' deleted from game '%s' FileName: %s\n", song.SongName, gameData.GameName, *song.FileName)
} else {
songFound = true
}