This commit is contained in:
lesion
2019-07-04 01:20:32 +02:00
parent c60072538e
commit 890c341d9e
2 changed files with 5 additions and 3 deletions

View File

@@ -105,6 +105,7 @@ const eventController = {
},
async confirm(req, res) {
console.error('confirm event')
const id = Number(req.params.event_id)
const event = await Event.findByPk(id)
if (!event) return res.sendStatus(404)