diff --git a/src/Components/SignupPage/SignupPage.js b/src/Components/SignupPage/SignupPage.js index 7cd62a3..76cc71f 100644 --- a/src/Components/SignupPage/SignupPage.js +++ b/src/Components/SignupPage/SignupPage.js @@ -152,7 +152,15 @@ const SignupPage = () => { } } - async function saveUserData(authId, dataValues, customerId, subscriptionId) { + async function saveUserData( + authId, + dataValues, + customerId, + subscriptionId, + subscriptionCreated, + subscriptionPeriodStart, + subscriptionPeriodEnd + ) { const appUserId = uuidv4(); const firmId = uuidv4(); const fbAuthUid = authId; @@ -205,6 +213,9 @@ const SignupPage = () => { customerId: customerId, subscriptionId: subscriptionId, subscriptionPlan: plan, + subscriptionCreated: subscriptionCreated, + subscriptionPeriodStart: subscriptionPeriodStart, + subscriptionPeriodEnd: subscriptionPeriodEnd, }; try { @@ -360,9 +371,10 @@ const SignupPage = () => { const user = userCredential.user; dataValues = { ...dataValues, ...data }; console.log( - "customerId, subscriptionId in handleSignup right before saveUserData", + "customerId, subscriptionId subscriptionCreated, in handleSignup right before saveUserData", customerId, - subscriptionId + subscriptionId, + subscriptionCreated ); await saveUserData( user.uid,