File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,7 @@ module.exports = config => {
33
44 Object . assign ( config . utils , {
55 async getWhitelist ( ) {
6- const users = JSON . parse ( await env . get ( env . keys . WHITELIST ) || '[]' )
7- const usersList = users . join ( ', ' )
8- return `Whitelisted users: ${ usersList } `
6+ return JSON . parse ( await env . get ( env . keys . WHITELIST ) || '[]' )
97 } ,
108 async addWhitelistUser ( user ) {
119 user = user . toLowerCase ( )
@@ -22,7 +20,7 @@ module.exports = config => {
2220 return `${ user } removed from whitelist`
2321 }
2422 } )
25- config . utils . getWhitelist . _help = 'getWhitelist()'
26- config . utils . addWhitelistUser . _help = 'addWhitelistUser(username)'
27- config . utils . removeWhitelistUser . _help = 'removeWhitelistUser(username)'
23+ config . utils . getWhitelist . _help = 'getWhitelist() - Get the current whitelist object '
24+ config . utils . addWhitelistUser . _help = 'addWhitelistUser(username) - Add the given user to the whitelist '
25+ config . utils . removeWhitelistUser . _help = 'removeWhitelistUser(username) - Remove the give user from the whitelist '
2826}
You can’t perform that action at this time.
0 commit comments