Skip to content

Commit ee5a785

Browse files
committed
use proper data get
1 parent ae63cd6 commit ee5a785

File tree

1 file changed

+1
-1
lines changed
  • Node/quickstarts/firestore-sync-auth/functions

1 file changed

+1
-1
lines changed

Node/quickstarts/firestore-sync-auth/functions/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const {logger} = require("firebase-functions");
2626
exports.verifyComment = onDocumentWrittenWithAuthContext(
2727
"comments/{commentId}",
2828
(event) => {
29-
const snapshot = event.data;
29+
const snapshot = event.data.after;
3030
if (!snapshot) {
3131
logger.log("No data associated with the event");
3232
return;

0 commit comments

Comments
 (0)