#nerder

1 messages ยท Page 1 of 1 (latest)

stuck ingotBOT
gusty flame
#

Hello ๐Ÿ‘‹
You can't expand an object at the same time it is delivered. You'd need to make a GET request to retrieve the object separately

slow bane
#

umm ok, seems like there is concurrency related issue then

#

because if i try to retrieve the sub with the ID

#

i receive an error

gusty flame
#

What error are you seeing?

slow bane
#
else if (invoice.billing_reason === 'subscription_create') {
      const stripeSub = await this.stripe.subscriptions.retrieve(invoice.subscription as string);
      await this.customerSubscriptionRepository.add(gymId, dbCustomer.email, stripeSub);
    }

this is the affected piece of code

#

ok no

#

always the same mistake ๐Ÿคฆโ€โ™‚๏ธ

#

my bad, this is a request for connect

#

i forgot to prepend the account id

#

sorry

gusty flame
#

Ah, glad you figured it out

slow bane
#

I always forgot that i need to add stripeAccount to all the requests, when they are coming from a connected account

#

sorry for rubber duck it with you

#

๐Ÿ‘‹

gusty flame
#

NP! ๐Ÿ™‚ Happy to help