From 3861bf253c442ea7a5498cc69e2e0397fb897a3e Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Wed, 2 Oct 2019 18:09:19 +0700 Subject: [PATCH] Added options to stripe retrieve request no-issue This will allow us to expand sub objects when talking to stripe --- ghost/members-api/lib/stripe/api/stripeRequests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/members-api/lib/stripe/api/stripeRequests.js b/ghost/members-api/lib/stripe/api/stripeRequests.js index 426496be71..cbe2f9c133 100644 --- a/ghost/members-api/lib/stripe/api/stripeRequests.js +++ b/ghost/members-api/lib/stripe/api/stripeRequests.js @@ -1,9 +1,9 @@ const debug = require('ghost-ignition').debug('stripe-request'); const createStripeRequest = require('./createStripeRequest'); -const retrieve = createStripeRequest(function (stripe, resource, id) { +const retrieve = createStripeRequest(function (stripe, resource, id, options = {}) { debug(`retrieve ${resource} ${id}`); - return stripe[resource].retrieve(id); + return stripe[resource].retrieve(id, options); }); const list = createStripeRequest(function (stripe, resource, options) {