mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: tests
This commit is contained in:
committed by
GitHub
parent
fcd4445a89
commit
87b1148fa8
@@ -34,7 +34,7 @@ module.exports = function (Groups) {
|
|||||||
if (numOwners <= 1) {
|
if (numOwners <= 1) {
|
||||||
throw new Error('[[error:group-needs-owner]]');
|
throw new Error('[[error:group-needs-owner]]');
|
||||||
}
|
}
|
||||||
db.setRemove('group:' + groupName + ':owners', toUid);
|
await db.setRemove('group:' + groupName + ':owners', toUid);
|
||||||
plugins.fireHook('action:group.rescindOwnership', { uid: toUid, groupName: groupName });
|
plugins.fireHook('action:group.rescindOwnership', { uid: toUid, groupName: groupName });
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user