fix from mounted to asyncData/fetch, fix #12

This commit is contained in:
lesion
2019-06-12 22:26:28 +02:00
parent 9003afd810
commit a9b73f373b
4 changed files with 147 additions and 108 deletions

View File

@@ -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) {