Skip to content

Commit

Permalink
FIX: Apply new Return API #162
Browse files Browse the repository at this point in the history
  • Loading branch information
Oris482 committed Dec 10, 2022
1 parent b3ee321 commit 35fed07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/Modals/ReturnModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ const ReturnModal = (props: any) => {
const ReturnAPI = async () => {
try {
const cabinetIdx = data !== undefined ? data.cabinet_id : "";
const urlReturn = "/api/return?cabinetIdx=" + cabinetIdx;
const urlReturn = "/api/v3/return/cabinet/" + cabinetIdx;
const token = localStorage.getItem("accessToken");
let params: SearchQueryBody;
await API.axiosFormat(
{
method: "PATCH",
method: "DELETE",
url: API.url(urlReturn),
},
token
Expand Down

0 comments on commit 35fed07

Please # to comment.