mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 08:55:47 +01:00
Groups.getGroupNameByGroupSlug
This commit is contained in:
@@ -246,6 +246,10 @@ var async = require('async'),
|
||||
});
|
||||
};
|
||||
|
||||
Groups.getGroupNameByGroupSlug = function(slug, callback) {
|
||||
db.getObjectField('groupslug:groupname', slug, callback);
|
||||
};
|
||||
|
||||
Groups.getGroupFields = function(groupName, fields, callback) {
|
||||
db.getObjectFields('group:' + groupName, fields, callback);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user