Skip to content

Commit 31a85f4

Browse files
authored
.document -> .doc
1 parent 5ad041a commit 31a85f4

File tree

1 file changed

+1
-1
lines changed
  • firestore/solution-aggregation/functions

1 file changed

+1
-1
lines changed

firestore/solution-aggregation/functions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exports.aggregateRatings = functions.firestore
1111
var ratingVal = change.after.data().rating;
1212

1313
// Get a reference to the restaurant
14-
var restRef = db.collection('restaurants').document(context.params.restId);
14+
var restRef = db.collection('restaurants').doc(context.params.restId);
1515

1616
// Update aggregations in a transaction
1717
return db.runTransaction(transaction => {

0 commit comments

Comments
 (0)