Added Game played when adding to que

This commit is contained in:
2022-04-23 13:29:45 +02:00
parent 58ff8a64cc
commit f7b4005159

View File

@@ -36,6 +36,7 @@ func Reset() {
func AddLatestToQue() {
if lastFetched.Path != "" {
currentSong = len(songQue)
db.AddGamePlayed(lastFetched.GameId)
songQue = append(songQue, lastFetched)
lastFetched = models.SongData{}
}