mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Upper-case for all methods
This is required by the fetch-api. GitOrigin-RevId: 641c63ad2fe6b9d01c48c28faf669051de8f3271
This commit is contained in:
parent
2477ac6c50
commit
8af5fa0378
2 changed files with 5 additions and 5 deletions
|
@ -579,7 +579,7 @@ const promises = {
|
|||
async attemptInvoiceCollection(invoiceId) {
|
||||
return await RecurlyWrapper.promises.apiRequest({
|
||||
url: `invoices/${invoiceId}/collect`,
|
||||
method: 'put',
|
||||
method: 'PUT',
|
||||
})
|
||||
},
|
||||
|
||||
|
@ -639,7 +639,7 @@ const promises = {
|
|||
try {
|
||||
await RecurlyWrapper.promises.apiRequest({
|
||||
url: 'coupons',
|
||||
method: 'post',
|
||||
method: 'POST',
|
||||
body: requestBody,
|
||||
})
|
||||
} catch (error) {
|
||||
|
@ -677,7 +677,7 @@ const promises = {
|
|||
try {
|
||||
await RecurlyWrapper.promises.apiRequest({
|
||||
url: `coupons/${couponCode}/redeem`,
|
||||
method: 'post',
|
||||
method: 'POST',
|
||||
body: requestBody,
|
||||
})
|
||||
} catch (error) {
|
||||
|
@ -703,7 +703,7 @@ const promises = {
|
|||
await RecurlyWrapper.promises.apiRequest({
|
||||
url: `subscriptions/${subscriptionId}/postpone`,
|
||||
qs: { bulk: false, next_bill_date: nextRenewalDate },
|
||||
method: 'put',
|
||||
method: 'PUT',
|
||||
})
|
||||
} catch (error) {
|
||||
logger.warn(
|
||||
|
|
|
@ -378,7 +378,7 @@ describe('RecurlyWrapper', function () {
|
|||
.stub(this.RecurlyWrapper.promises, 'apiRequest')
|
||||
.callsFake(options => {
|
||||
options.url.should.equal(`coupons/${this.coupon_code}/redeem`)
|
||||
options.method.should.equal('post')
|
||||
options.method.should.equal('POST')
|
||||
return {}
|
||||
})
|
||||
await this.RecurlyWrapper.promises.redeemCoupon(
|
||||
|
|
Loading…
Reference in a new issue