Skip to content

Commit

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

// Find voucher by code, send to SOAP
router.post('/use/:code', async (req, res) => {
router.post('/use/:code', accessValidation, async (req, res) => {
const { code } = req.params;
const { user_id } = req.body;

Expand Down

0 comments on commit 08a1a9b

Please sign in to comment.