mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-18 03:34:20 +00: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) {
|
async getAccountPastDueInvoices(accountId) {
|
||||||
const { body } = await RecurlyWrapper.promises.apiRequest({
|
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)
|
return await RecurlyWrapper.promises._parseInvoicesXml(body)
|
||||||
},
|
},
|
||||||
|
@ -700,7 +701,8 @@ const promises = {
|
||||||
)
|
)
|
||||||
try {
|
try {
|
||||||
await RecurlyWrapper.promises.apiRequest({
|
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',
|
method: 'put',
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in a new issue