Skip to content

Commit 0efd56d

Browse files
committed
use the value of verified
1 parent 734188c commit 0efd56d

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ exports.verifyComment = onDocumentWrittenWithAuthContext(
4646
verified = true;
4747
}
4848
}
49-
49+
5050
// add auth medadata to the document
5151
return data.after.ref.set(
5252
{
5353
created_by: authId,
54-
verified: false,
54+
verified,
5555
},
5656
{ merge: true }
5757
);

0 commit comments

Comments
 (0)