summaryrefslogtreecommitdiffstats
path: root/server/api/ipxeentries.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/api/ipxeentries.js')
-rw-r--r--server/api/ipxeentries.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/api/ipxeentries.js b/server/api/ipxeentries.js
index bfdb29d..1003754 100644
--- a/server/api/ipxeentries.js
+++ b/server/api/ipxeentries.js
@@ -15,7 +15,7 @@ router.getAsync('', async (req, res) => {
})
router.getAsync('/:id', async (req, res) => {
- if (!(req.params.id > 0)) HttpResponse.invalidId().send(res)
+ if (!(req.params.id > 0)) return HttpResponse.invalidId().send(res)
const entry = await db.entry.findOne({ where: { id: req.params.id } })
if (entry) res.status(200).send(entry)
else HttpResponse.notFound(req.params.id).send(res)