Skip to content

Commit

Permalink
Fix retrieving and deleting order in sample
Browse files Browse the repository at this point in the history
  • Loading branch information
canmingir committed May 10, 2024
1 parent 0c18da9 commit 7784890
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ function action(req) {
description: "Get order by id",
action: `
function action(req) {
const itemId = req.params.itemId;
return Item[itemId];
const order = req.params.order;
return Order[order];
}
`,
},
Expand Down Expand Up @@ -433,8 +433,8 @@ function action(req) {
description: "Delete order by id",
action: `
function action(req) {
const item = req.params.item;
delete Item[item];
const order = req.params.order;
delete Order[order];
}
`,
},
Expand Down

0 comments on commit 7784890

Please sign in to comment.