Recently, I integrated the email trigger extension for Firebase. Below is the function I am using:
firestore
.collection("profiledata")
.doc(user.uid)
.update({
accountStatus: "active",
})
.then(() => {
// At this point, I need to insert the Firebase code
props.history.push("/clients");
});
However, when I try to include the Firebase code like this:
firestore
.collection("<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="096e606867657c6a684979606c7b7a66657c7d6066677a276a68">[email protected]</a>")
.add({
to: "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="91f2feffe5f0f2e5d1e1f8f4e3e2fefde4e5f8feffe2bff2f0">[email protected]</a>",
message: {
subject: "Hello from Firebase!",
text: "This is the plaintext section of the email body.",
},
})
.then(() => console.log("Queued email for delivery!"));
props.history.push("/clients");
In my IDE, it displays as shown in this image:
https://i.stack.imgur.com/y91eC.png
I'm facing issues while trying to input this code here! Any suggestions on how to resolve this?