mirror of
https://github.com/KevinMidboe/zoff.git
synced 2026-01-10 03:25:33 +00:00
Merge branch 'dev' of github.com:nixolas1/Zoff into dev
This commit is contained in:
@@ -354,7 +354,7 @@ function change_song(coll, id, np_id)
|
|||||||
db.collection(coll).find({id:id}, function(err, docs){
|
db.collection(coll).find({id:id}, function(err, docs){
|
||||||
if(startTime+docs[0]["duration"]<=get_time()-1)
|
if(startTime+docs[0]["duration"]<=get_time()-1)
|
||||||
{
|
{
|
||||||
db.collection(coll).update({now_playing:true, id:id},
|
db.collection(coll).update({id:id},
|
||||||
{$set:{
|
{$set:{
|
||||||
now_playing:false,
|
now_playing:false,
|
||||||
votes:0,
|
votes:0,
|
||||||
|
|||||||
Reference in New Issue
Block a user