This commit is contained in:
Karol Wypchlo 2021-02-25 15:18:46 +01:00
parent 775e74dd15
commit ce295d2330
1 changed files with 2 additions and 2 deletions

View File

@ -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 } });
}