From 571f486f9d8abef6ea7570c5699636f5128748d5 Mon Sep 17 00:00:00 2001 From: Jane Ullah Date: Sun, 3 Feb 2019 19:46:19 -0700 Subject: [PATCH] Update index.js updated comment to fix a small typo and reflect that the Cloud Firestore (not Realtime Database) is being written to. --- quickstarts/uppercase-firestore/functions/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstarts/uppercase-firestore/functions/index.js b/quickstarts/uppercase-firestore/functions/index.js index eed253c401..0fdc0e9ff5 100644 --- a/quickstarts/uppercase-firestore/functions/index.js +++ b/quickstarts/uppercase-firestore/functions/index.js @@ -34,9 +34,9 @@ exports.addMessage = functions.https.onRequest((req, res) => { // Grab the text parameter. const original = req.query.text; // [START adminSdkAdd] - // Push the new message into the Realtime Database using the Firebase Admin SDK. + // Push the new message into the Cloud Firestore using the Firebase Admin SDK. return admin.firestore().collection('messages').add({original: original}).then((writeResult) => { - // Send back a message that we've succesfully written the message + // Send back a message that we've successfully written the message return res.json({result: `Message with ID: ${writeResult.id} added.`}); }); // [END adminSdkAdd]