mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Rewriting for own settings collections for more consistency of documents
This commit is contained in:
@@ -22,9 +22,9 @@ function makeNewAndDelete(name) {
|
||||
} else if(doc.length == 1) {
|
||||
db.collection(name + "_settings").insert(doc[0], function(err, result){
|
||||
console.log("Result insert", result);
|
||||
/*db.collection(name).remove({views: {$exists: true}}, function(err, result_del) {
|
||||
db.collection(name).remove({views: {$exists: true}}, function(err, result_del) {
|
||||
console.log("Result delete", result_del);
|
||||
});*/
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user