Skip to content

Commit

Permalink
fix: fix edit and delete voucher endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ditramadia committed Nov 17, 2023
1 parent c4046d3 commit 0419107
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/voucher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ router.post('/create', accessValidation, async (req, res) => {
},
});

console.log('cool');
res.status(200).json({
message: 'Voucher successfully created',
result: response,
Expand All @@ -122,7 +121,7 @@ router.put('/edit/:id', accessValidation, async (req, res) => {
},
data: {
code,
amount,
amount: parseInt(amount),
},
});

Expand Down

0 comments on commit 0419107

Please sign in to comment.