Fixed bug on duplicate song

This commit is contained in:
dbroqua 2019-12-30 13:37:53 +01:00
parent 92825ab201
commit 904b697574

View file

@ -12,7 +12,9 @@ class ArtistSong {
saveCurrent (value) {
// Find if previous song was the same (on bot reload)
this.models.Histories
.find({})
.find({
radio: value.radio
})
.sort({
createdAt: 'desc'
})