mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Update suggested video by users to send correct parameters
This commit is contained in:
		| @@ -486,7 +486,8 @@ function add_function(arr, coll, guid, offline, socket) { | ||||
|                                 } | ||||
|                                 db.collection(coll).update({id: id}, {$set: suggestedAdd}, {upsert:true}, function(err, docs){ | ||||
|                                     socket.emit("toast", "suggested"); | ||||
|                                     var toSend = {id: id, title: title, duration: duration, source: suggestedAdd.source}; | ||||
|                                     var toSend = suggestedAdd; | ||||
|                                     toSend.guids = []; | ||||
|                                     if(source == "soundcloud") toSend.thumbnail = arr.thumbnail; | ||||
|                                     io.to(coll).emit("suggested", toSend); | ||||
|                                 }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user