Skip to content

Commit

Permalink
api: ill: Pass empty json payload in POST request for extension actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 authored and jrcastro2 committed Feb 27, 2024
1 parent 05b6aa6 commit 43e6c06
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/api/ill/borrowingRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const createLoan = async (borrowingRequestPid, loanStartDate, loanEndDate) => {

const requestExtension = async (borrowingRequestPid) => {
const resp = await http.post(
`${borrowingRequestUrl}${borrowingRequestPid}/patron-loan/extension/request`
`${borrowingRequestUrl}${borrowingRequestPid}/patron-loan/extension/request`,
{}
);
return resp;
};
Expand All @@ -63,7 +64,8 @@ const acceptExtension = async (borrowingRequestPid, loanEndDate) => {

const declineExtension = async (borrowingRequestPid) => {
const resp = await http.post(
`${borrowingRequestUrl}${borrowingRequestPid}/patron-loan/extension/decline`
`${borrowingRequestUrl}${borrowingRequestPid}/patron-loan/extension/decline`,
{}
);
return resp;
};
Expand Down

0 comments on commit 43e6c06

Please sign in to comment.