File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ module.exports = {
6060 }
6161 } ,
6262 VANILLA : {
63+ DEFAULT_MEMBER_ROLES : [ 'Vanilla Member' ] ,
6364 CHALLENGES_FORUM : 'Challenges Forums' ,
6465 CATEGORY_DISPLAY_STYLE : {
6566 CATEGORIES : 'categories' ,
Original file line number Diff line number Diff line change @@ -59,7 +59,10 @@ async function manageVanillaUser (data) {
5959 if ( ! vanillaUser ) {
6060 logger . info ( `The '${ username } ' user wasn't found in Vanilla` )
6161
62- const defaultVanillaRoles = _ . filter ( allNewVanillaRoles , { type : 'member' } )
62+ const defaultVanillaRoles = _ . filter ( allNewVanillaRoles , function ( role ) {
63+ return role . type === 'member' && constants . VANILLA . DEFAULT_MEMBER_ROLES . includes ( role . name )
64+ } )
65+
6366 const defaultVanillaRoleIDs = _ . map ( defaultVanillaRoles , 'roleID' )
6467
6568 const userData = {
You can’t perform that action at this time.
0 commit comments