mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-07 16:12:53 +01:00
feat(writeapi): added group joining and deletion
This commit is contained in:
@@ -190,6 +190,7 @@ Groups.getOwnersAndMembers = async function (groupName, uid, start, stop) {
|
||||
};
|
||||
|
||||
Groups.getByGroupslug = async function (slug, options) {
|
||||
options = options || {};
|
||||
const groupName = await db.getObjectField('groupslug:groupname', slug);
|
||||
if (!groupName) {
|
||||
throw new Error('[[error:no-group]]');
|
||||
|
||||
Reference in New Issue
Block a user