mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Separate qs out from url
GitOrigin-RevId: 8a1c45d3d71240e63f78f2f1920b324577eb7e6d
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user