diff --git a/components/Pricing.js b/components/Pricing.js index 53a7ddf..550d3fe 100644 --- a/components/Pricing.js +++ b/components/Pricing.js @@ -36,11 +36,13 @@ const Pricing = () => { if (user) { getSub().then((result) => setSub(result)); supabase - .from("profiles") - .select(`customerId`) + .from("subscriptions") + .select(`customer_id`) .eq("id", user.id) .single() - .then((result) => setCustomerId(result.data?.customerId)); + .then((result) => { + setCustomerId(result.data?.customer_id); + }); } }, [user]); diff --git a/package-lock.json b/package-lock.json index 81970e3..69a8f4f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,12 @@ { "name": "supanextail", - "version": "0.4.0", + "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "0.4.0", + "name": "supanextail", + "version": "1.0.0", "dependencies": { "@headlessui/react": "^1.2.0", "@sendgrid/mail": "^7.4.4",