Fixed issue with suggested being duplicated and RESTApi posting

This commit is contained in:
Kasper Rynning-Tønnesen
2018-03-02 09:23:07 +01:00
parent e720776365
commit 7fda70965f
5 changed files with 40 additions and 18 deletions

View File

@@ -38,6 +38,7 @@ function get_correct_info(song_generated, channel, broadcast, callback) {
}, function(err, docs) {
if(broadcast && docs.nModified == 1) {
song_generated.new_id = song_generated.id;
//if(song_generated.type == "video")
io.to(channel).emit("channel", {type: "changed_values", value: song_generated});
if(typeof(callback) == "function") {
callback();