Fixed issues with window-history and soundcloud.load function

This commit is contained in:
Kasper Rynning-Tønnesen
2018-05-03 19:31:31 +02:00
parent a095e23db0
commit 9442a2093b
12 changed files with 88 additions and 50 deletions

View File

@@ -17,11 +17,12 @@ function frontpage_lists(msg, socket) {
});
}
function update_frontpage(coll, id, title, callback) {
function update_frontpage(coll, id, title, thumbnail, callback) {
coll = coll.replace(/ /g,'');
db.collection("frontpage_lists").update({_id: coll}, {$set: {
id: id,
title: title,
thumbnail: thumbnail,
accessed: Functions.get_time()}
},{upsert: true}, function(err, returnDocs){
if(typeof(callback) == "function") callback();