mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Separate qs out from url
GitOrigin-RevId: 8a1c45d3d71240e63f78f2f1920b324577eb7e6d
This commit is contained in:
parent
709982ac65
commit
67cb9fc1b3
1 changed files with 4 additions and 2 deletions
|
@ -570,7 +570,8 @@ const promises = {
|
|||
|
||||
async getAccountPastDueInvoices(accountId) {
|
||||
const { body } = await RecurlyWrapper.promises.apiRequest({
|
||||
url: `accounts/${accountId}/invoices?state=past_due`,
|
||||
url: `accounts/${accountId}/invoices`,
|
||||
qs: { state: 'past_due' },
|
||||
})
|
||||
return await RecurlyWrapper.promises._parseInvoicesXml(body)
|
||||
},
|
||||
|
@ -700,7 +701,8 @@ const promises = {
|
|||
)
|
||||
try {
|
||||
await RecurlyWrapper.promises.apiRequest({
|
||||
url: `/subscriptions/${subscriptionId}/postpone?next_bill_date=${nextRenewalDate}&bulk=false`,
|
||||
url: `subscriptions/${subscriptionId}/postpone`,
|
||||
qs: { bulk: false, next_bill_date: nextRenewalDate },
|
||||
method: 'put',
|
||||
})
|
||||
} catch (error) {
|
||||
|
|
Loading…
Reference in a new issue