chore: eslint prefer-rest-params, prefer-spread

This commit is contained in:
Peter Jaszkowiak
2021-02-04 00:52:25 -07:00
committed by Julian Lam
parent 23f212a4c0
commit 115d19e289
14 changed files with 24 additions and 31 deletions

View File

@@ -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 () {