mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-12-08 20:48:48 +00:00
REST-endpoints and readme
This commit is contained in:
@@ -10,12 +10,14 @@ function frontpage_lists(msg, socket) {
|
||||
});
|
||||
}
|
||||
|
||||
function update_frontpage(coll, id, title) {
|
||||
function update_frontpage(coll, id, title, callback) {
|
||||
db.collection("frontpage_lists").update({_id: coll}, {$set: {
|
||||
id: id,
|
||||
title: title,
|
||||
accessed: Functions.get_time()}
|
||||
},{upsert: true}, function(err, returnDocs){});
|
||||
},{upsert: true}, function(err, returnDocs){
|
||||
if(typeof(callback) == "function") callback();
|
||||
});
|
||||
}
|
||||
|
||||
module.exports.frontpage_lists = frontpage_lists;
|
||||
|
||||
Reference in New Issue
Block a user