Skip to content

Commit 176fc16

Browse files
authored
Update index.js
add log to firebase functions about user contribution profile to check if a group has been submitted already
1 parent 7d62c6b commit 176fc16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

firebase/functions/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ exports.resultCounter = functions.database.ref('/v2/results/{projectId}/{groupId
7171
const contributionTime = userContributionRef.child(context.params.groupId).once('value')
7272
.then((dataSnapshot) => {
7373
if (dataSnapshot.exists()) {
74+
console.log('group contribution exists already. user: '+context.params.userId' project: '+context.params.projectId+' group: '+context.params.groupId)
7475
return null
7576
}
7677
else {

0 commit comments

Comments
 (0)