mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +01:00
chore: eslint prefer-rest-params, prefer-spread
This commit is contained in:
committed by
Julian Lam
parent
23f212a4c0
commit
115d19e289
@@ -191,7 +191,7 @@ async function isSelfOrMethod(callerUid, uid, method) {
|
||||
|
||||
User.getAdminsandGlobalMods = async function () {
|
||||
const results = await groups.getMembersOfGroups(['administrators', 'Global Moderators']);
|
||||
return await User.getUsersData(_.union.apply(_, results));
|
||||
return await User.getUsersData(_.union(...results));
|
||||
};
|
||||
|
||||
User.getAdminsandGlobalModsandModerators = async function () {
|
||||
@@ -200,7 +200,7 @@ User.getAdminsandGlobalModsandModerators = async function () {
|
||||
groups.getMembers('Global Moderators', 0, -1),
|
||||
User.getModeratorUids(),
|
||||
]);
|
||||
return await User.getUsersData(_.union.apply(_, results));
|
||||
return await User.getUsersData(_.union(...results));
|
||||
};
|
||||
|
||||
User.getModeratorUids = async function () {
|
||||
|
||||
Reference in New Issue
Block a user