fix confirm/unconfirm event

This commit is contained in:
lesion 2019-07-04 00:29:50 +02:00
parent ca89087d45
commit 8e387259c5

View file

@ -104,7 +104,7 @@ const eventController = {
},
async confirm(req, res) {
const id = req.params.event_id
const id = Number(req.params.event_id)
const event = await Event.findByPk(id)
try {
@ -119,7 +119,7 @@ const eventController = {
},
async unconfirm(req, res) {
const id = req.params.event_id
const id = Number(req.params.event_id)
const event = await Event.findByPk(id)
try {