File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ exports.groupUsersCounter = functions.database.ref('/v2/results/{projectId}/{gro
8181 promises . push ( updateValues . totalGroupContributionCount )
8282 promises . push ( updateValues . taskContributionCount )
8383 }
84+
85+ return Promise . all ( promises )
8486} )
8587
8688
@@ -137,6 +139,8 @@ exports.groupFinishedCountUpdater = functions.database.ref('/v2/groupsUsers/{pro
137139 } )
138140 promises_new . push ( groupValues . requiredCount )
139141 promises_new . push ( groupValues . finishedCount )
142+
143+ return Promise . all ( promises_new )
140144} )
141145
142146
@@ -155,6 +159,8 @@ exports.projectContributionCounter = functions.database.ref('/v2/users/{userId}/
155159 // set number of projects a user contributed to
156160 const projectContributionCount = projectContributionCountRef . set ( Object . keys ( contributions ) . length )
157161 promises_2 . push ( projectContributionCount )
162+
163+ return Promise . all ( promises_2 )
158164} )
159165
160166
You can’t perform that action at this time.
0 commit comments