File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,6 @@ module.exports = {
115
115
} ,
116
116
GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY : 'GOOGLE_SERVICE_ACCOUNT_PRIVATE_KEY' ,
117
117
GAMIFICATION : {
118
- ORG_ID : 'GAMIFICATION_ORG_ID'
119
- }
118
+ ORG_ID : 'GAMIFICATION_ORG_ID' ,
119
+ } ,
120
120
} ;
Original file line number Diff line number Diff line change @@ -453,6 +453,6 @@ module.exports = {
453
453
} ,
454
454
PLATFORM_SITE_URL : 'https://platform.topcoder-dev.com' ,
455
455
GAMIFICATION : {
456
- ORG_ID : ''
457
- }
456
+ ORG_ID : '' ,
457
+ } ,
458
458
} ;
Original file line number Diff line number Diff line change @@ -23,20 +23,20 @@ async function getGamificationBadgesInit(handle) {
23
23
*/
24
24
async function getGamificationBadgesDone ( handle ) {
25
25
try {
26
- const memberInfo = await fetch ( `${ config . API . V5 } /members/${ handle } ` )
27
- . then ( response => response . json ( ) ) ;
28
- const badges = await fetch ( `${ config . API . V5 } /gamification/badges/assigned/${ memberInfo . userId } ?organization_id=${ config . GAMIFICATION . ORG_ID } ` )
29
- . then ( response => response . json ( ) ) ;
26
+ const memberInfo = await fetch ( `${ config . API . V5 } /members/${ handle } ` )
27
+ . then ( response => response . json ( ) ) ;
28
+ const badges = await fetch ( `${ config . API . V5 } /gamification/badges/assigned/${ memberInfo . userId } ?organization_id=${ config . GAMIFICATION . ORG_ID } ` )
29
+ . then ( response => response . json ( ) ) ;
30
30
31
- return {
32
- handle,
33
- badges,
34
- } ;
31
+ return {
32
+ handle,
33
+ badges,
34
+ } ;
35
35
} catch ( error ) {
36
36
return {
37
37
handle,
38
38
error,
39
- }
39
+ } ;
40
40
}
41
41
}
42
42
You can’t perform that action at this time.
0 commit comments