From ce295d233063971b7a234e21402e7e7da770523b Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Thu, 25 Feb 2021 15:18:46 +0100 Subject: [PATCH] foo --- packages/dashboard/src/pages/api/stripe/activeSubscription.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dashboard/src/pages/api/stripe/activeSubscription.js b/packages/dashboard/src/pages/api/stripe/activeSubscription.js index f5a87e99..23f13737 100644 --- a/packages/dashboard/src/pages/api/stripe/activeSubscription.js +++ b/packages/dashboard/src/pages/api/stripe/activeSubscription.js @@ -9,9 +9,9 @@ export default async (req, res) => { const authorization = req.headers.authorization; // authorization header from request const { stripeCustomerId } = await got("http://accounts:3000/user", { headers: { authorization } }).json(); const stripeCustomer = await stripe.customers.retrieve(stripeCustomerId); - const { subscriptions } = stripeCustomer; + // const { subscriptions } = stripeCustomer; - res.json(subscriptions); + res.json(stripeCustomer); } catch ({ message }) { res.status(StatusCodes.BAD_REQUEST).json({ error: { message } }); }