Skip to content

Commit

Permalink
fix get superadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
guiguicdd committed Mar 9, 2022
1 parent bc8b415 commit 666551e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ exports.global = {
return message
},
getGroupAdmins(participants) {
return participants.filter((a) => a.admin == 'admin')
return participants.filter((a) => a.admin == 'admin' || a.admin == 'superadmin')
},
getRandom(ext) {
return `${Math.floor(Math.random() * 10000)}${ext}`
Expand Down

0 comments on commit 666551e

Please sign in to comment.