File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ exports.counter = functions.database.ref('/v2/results/{projectId}/{groupId}/{use
131131
132132
133133exports . counter_2 = functions . database . ref ( '/v2/users/{userId}/contributions/{projectId}/' ) . onCreate ( ( snapshot , context ) => {
134- const promises = [ ]
134+ const promises_2 = [ ]
135135
136136 // Firebase Realtime Database references
137137 const contributorCountRef = admin . database ( ) . ref ( '/v2/projects/' + context . params . projectId + '/contributorCount' )
@@ -140,14 +140,14 @@ exports.counter_2 = functions.database.ref('/v2/users/{userId}/contributions/{pr
140140 const projectContributionCount = projectContributionCountRef . transaction ( ( currentCount ) => {
141141 return currentCount + 1
142142 } )
143- promises . push ( projectContributionCount )
143+ promises_2 . push ( projectContributionCount )
144144
145145 const contributorCount = contributorCountRef . transaction ( ( currentCount ) => {
146146 return currentCount + 1
147147 } )
148- promises . push ( contributorCount )
148+ promises_2 . push ( contributorCount )
149149
150- return Promise . all ( promises )
150+ return Promise . all ( promises_2 )
151151} )
152152
153153
You can’t perform that action at this time.
0 commit comments