mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-04 16:03:06 +00:00
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:
parent
adf26344fb
commit
7954326711
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue