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 c708cd6 commit 43b1b40Copy full SHA for 43b1b40
Node/quickstarts/firestore-sync-auth/functions/index.js
@@ -48,9 +48,9 @@ exports.verifyComment = onDocumentWrittenWithAuthContext(
48
}
49
50
// add auth medadata to the document
51
- return data.after.ref.set(
+ return snapshot.ref.set(
52
{
53
- created_by: authId,
+ created_by: authId ?? "undefined",
54
verified,
55
},
56
{merge: true},
0 commit comments