Skip to content

Commit a2a7b67

Browse files
Fixed indent
1 parent e23e50f commit a2a7b67

File tree

1 file changed

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

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ function triggerDocumentAnyChange() {
6666
exports.modifyUser = functions.firestore
6767
.document('users/{userID}')
6868
.onWrite((change, context) => {
69-
// Get an object with the current document value.
70-
// If the document does not exist, it has been deleted.
71-
const document = change.after.exists ? change.after.data() : null;
69+
// Get an object with the current document value.
70+
// If the document does not exist, it has been deleted.
71+
const document = change.after.exists ? change.after.data() : null;
7272

73-
// Get an object with the previous document value (for update or delete)
74-
const oldDocument = change.before.data();
73+
// Get an object with the previous document value (for update or delete)
74+
const oldDocument = change.before.data();
7575

76-
// perform desired operations ...
76+
// perform desired operations ...
7777
});
7878
// [END trigger_document_any_change]
7979
}

0 commit comments

Comments
 (0)