fix: tests

This commit is contained in:
Barış Soner Uşaklı
2019-07-18 14:23:10 -04:00
committed by GitHub
parent fcd4445a89
commit 87b1148fa8

View File

@@ -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 });
}; };
}; };