Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 115b6cd

Browse files
committedNov 1, 2017
changed variable names
1 parent d094100 commit 115b6cd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎app/skill-picker/skill-picker.controller.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,19 +127,19 @@ import _ from 'lodash'
127127
* Checks registration status of each community and updates the state of each community.
128128
*/
129129
function checkCommunityStatus() {
130-
var promises = [], groupPromises = []
130+
var eventAPIpromises = [], groupAPIPromises = []
131131
for (var name in vm.communities) {
132132
var community = vm.communities[name]
133133
if(community.groupCommunity){
134-
groupPromises.push(GroupService.getMembers(vm.userId, community.programId))
134+
groupAPIPromises.push(GroupService.getMembers(vm.userId, community.programId))
135135
}else{
136-
promises.push(MemberCertService.getMemberRegistration(vm.userId, community.programId))
136+
eventAPIpromises.push(MemberCertService.getMemberRegistration(vm.userId, community.programId))
137137
}
138138
}
139139

140140
vm.loadingCommunities = true
141141

142-
$q.all(groupPromises)
142+
$q.all(groupAPIPromises)
143143
.then(function(responses) {
144144
let members = responses[0] || []
145145
vm.loadingCommunities = false
@@ -154,7 +154,7 @@ import _ from 'lodash'
154154
vm.loadingCommunities = false
155155
})
156156

157-
$q.all(promises)
157+
$q.all(eventAPIpromises)
158158
.then(function(responses) {
159159
vm.loadingCommunities = false
160160
responses.forEach(function(program) {

0 commit comments

Comments
 (0)
This repository has been archived.