Skip to content

Commit e325266

Browse files
Update index.js
1 parent bd4e4be commit e325266

File tree

1 file changed

+1
-1
lines changed
  • firestore/extend-with-functions/functions

1 file changed

+1
-1
lines changed

firestore/extend-with-functions/functions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function triggerNewDocument() {
1414
// [START trigger_new_document]
1515
exports.createUser = functions.firestore
1616
.document('users/{userId}')
17-
.onCreate((snao, context) => {
17+
.onCreate((snap, context) => {
1818
// Get an object representing the document
1919
// e.g. {'name': 'Marie', 'age': 66}
2020
const newValue = snap.data();

0 commit comments

Comments
 (0)