fix: #8010, fix isBanned call

v1.18.x
Barış Soner Uşaklı 5 years ago
parent ac5c560c54
commit 59242d31aa

@ -78,7 +78,7 @@ module.exports = function (User) {
};
User.bans.filterBanned = async function (uids) {
const isBanned = User.bans.isBanned(uids);
const isBanned = await User.bans.isBanned(uids);
return uids.filter((uid, index) => !isBanned[index]);
};

Loading…
Cancel
Save