mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 00:47:10 +02:00
more mongo and redis stuff
This commit is contained in:
@@ -154,6 +154,13 @@
|
||||
});
|
||||
}
|
||||
|
||||
module.getObjects = function(keys, callback) {
|
||||
db.collection('objects').find({_key:{$in:keys}}, {_id:0, _key:0}).toArray(function(err, data) {
|
||||
|
||||
callback(err, data);
|
||||
});
|
||||
}
|
||||
|
||||
module.getObjectField = function(key, field, callback) {
|
||||
module.getObjectFields(key, [field], function(err, data) {
|
||||
if(err) {
|
||||
|
||||
Reference in New Issue
Block a user