#nerder
1 messages ยท Page 1 of 1 (latest)
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
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
What error are you seeing?
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
Ah, glad you figured it out
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
๐
NP! ๐ Happy to help