Skip to content

Commit

Permalink
Fix bug in payments update
Browse files Browse the repository at this point in the history
  • Loading branch information
lthebault-sw committed Feb 11, 2022
1 parent dcee52f commit 571a25a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = (zuoraClient) => ({
})
.then(({ body }) => body)
),
update: (paymentId, paymentParams) => {
update: (paymentId, paymentParams) =>
zuoraClient.authenticate().then((headers) =>
got
.put(`${zuoraClient.serverUrl}/v1/object/payment/${paymentId}`, {
Expand All @@ -20,6 +20,5 @@ module.exports = (zuoraClient) => ({
json: true,
})
.then(({ body }) => body)
);
},
)
});

0 comments on commit 571a25a

Please sign in to comment.