File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ exports.resultCounter = functions.database.ref('/v2/results/{projectId}/{groupId
3232 const userRef = admin . database ( ) . ref ( '/v2/users/' + context . params . userId )
3333 const userContributionRef = userRef . child ( 'contributions/' + context . params . projectId )
3434
35- // Counter for User
35+ // Counter for User contributions across Projects
3636 const totalGroupContributionCount = userRef . child ( 'groupContributionCount' ) . transaction ( ( currentCount ) => {
3737 return currentCount + 1
3838 } ) ;
@@ -50,7 +50,7 @@ exports.resultCounter = functions.database.ref('/v2/results/{projectId}/{groupId
5050 } )
5151 promises . push ( totalTaskContributionCount )
5252
53- // Counter for User per Project
53+ // Counter for User contributions on a distict Project
5454 const groupContributionCount = userContributionRef . child ( 'groupContributionCount' ) . transaction ( ( currentCount ) => {
5555 return currentCount + 1
5656 } ) ;
You can’t perform that action at this time.
0 commit comments