We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ad041a commit 31a85f4Copy full SHA for 31a85f4
firestore/solution-aggregation/functions/index.js
@@ -11,7 +11,7 @@ exports.aggregateRatings = functions.firestore
11
var ratingVal = change.after.data().rating;
12
13
// Get a reference to the restaurant
14
- var restRef = db.collection('restaurants').document(context.params.restId);
+ var restRef = db.collection('restaurants').doc(context.params.restId);
15
16
// Update aggregations in a transaction
17
return db.runTransaction(transaction => {
0 commit comments