mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
fix confirm/unconfirm event
This commit is contained in:
parent
ca89087d45
commit
8e387259c5
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue