fix from mounted to asyncData/fetch, fix #12
This commit is contained in:
@@ -92,7 +92,11 @@ const eventController = {
|
||||
],
|
||||
order: [ [Comment, 'id', 'DESC'], [Tag, 'weigth', 'DESC'] ]
|
||||
})
|
||||
res.json(event)
|
||||
if (event) {
|
||||
res.json(event)
|
||||
} else {
|
||||
res.sendStatus(404)
|
||||
}
|
||||
},
|
||||
|
||||
async confirm(req, res) {
|
||||
|
||||
Reference in New Issue
Block a user