File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -59,15 +59,9 @@ exports.groupUsersCounter = functions.database.ref('/v2/results/{projectId}/{gro
5959 return null
6060 }
6161 else {
62-
63- const data = {
64- 'startTime' : result [ 'startTime' ] ,
65- 'endTime' : result [ 'endTime' ]
66- }
6762 const numberOfTasks = Object . keys ( result [ 'results' ] ) . length
68-
6963 return {
70- userContribution : userContributionRef . child ( context . params . groupId ) . set ( data ) ,
64+ userContribution : userContributionRef . child ( context . params . groupId ) . set ( true ) ,
7165 groupUsers : groupUsersRef . child ( context . params . userId ) . set ( true ) ,
7266 totalTaskContributionCount : totalTaskContributionCountRef . transaction ( ( currentCount ) => { return currentCount + numberOfTasks } ) ,
7367 totalGroupContributionCount : totalGroupContributionCountRef . transaction ( ( currentCount ) => { return currentCount + 1 } ) ,
You can’t perform that action at this time.
0 commit comments