From 098d90b3db6ffc67fc6970ff4505fc1b9ee98f97 Mon Sep 17 00:00:00 2001 From: Prashant Kurlekar Date: Sun, 14 Aug 2022 19:46:37 +1000 Subject: [PATCH] variable name spelling corrected --- stripe/functions/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stripe/functions/index.js b/stripe/functions/index.js index 0b8f3eae7e..ef63265b8d 100644 --- a/stripe/functions/index.js +++ b/stripe/functions/index.js @@ -145,11 +145,11 @@ exports.cleanupUser = functions.auth.user().onDelete(async (user) => { await stripe.customers.del(customer.customer_id); // Delete the customers payments & payment methods in firestore. const batch = admin.firestore().batch(); - const paymetsMethodsSnapshot = await dbRef + const paymentsMethodsSnapshot = await dbRef .doc(user.uid) .collection('payment_methods') .get(); - paymetsMethodsSnapshot.forEach((snap) => batch.delete(snap.ref)); + paymentsMethodsSnapshot.forEach((snap) => batch.delete(snap.ref)); const paymentsSnapshot = await dbRef .doc(user.uid) .collection('payments') @@ -168,7 +168,7 @@ exports.cleanupUser = functions.auth.user().onDelete(async (user) => { * alerts, if you've opted into receiving them. */ -// [START reporterror] +// [START reportError] function reportError(err, context = {}) { // This is the name of the log stream that will receive the log @@ -206,7 +206,7 @@ function reportError(err, context = {}) { }); } -// [END reporterror] +// [END reportError] /** * Sanitize the error message for the user.