Merge pull request #6136 from overleaf/jpa-fix-promise-vs-cb

[web] use promise based interface for getting the recurly subscription

GitOrigin-RevId: cb9409a824aa3df0f3a2def39237020227612eab
This commit is contained in:
Jakob Ackermann
2021-12-15 09:05:52 +00:00
committed by Copybot
parent a3b6b9c8f2
commit 0ef3f0b964
@@ -21,7 +21,7 @@ async function getRedirectToHostedPage(userId, pageType) {
if (!['billing-details', 'account-management'].includes(pageType)) {
throw new InvalidError('unexpected page type')
}
const personalSubscription = await SubscriptionLocator.getUsersSubscription(
const personalSubscription = await SubscriptionLocator.promises.getUsersSubscription(
userId
)
const recurlySubscriptionId = personalSubscription?.recurlySubscription_id