cleaner layout

This commit is contained in:
lesion
2022-06-07 21:08:47 +02:00
parent 1a7864b480
commit 080ffca56e
7 changed files with 22 additions and 21 deletions

View File

@@ -31,7 +31,7 @@ const cohortController = {
const name = req.params.name
const cohort = await Cohort.findOne({ where: { name } })
if (!cohort) {
if (!cohort) {
return res.sendStatus(404)
}
const filters = await Filter.findAll({ where: { cohortId: cohort.id } })