fix: return

This commit is contained in:
Nikola Ubavić 2022-03-17 22:34:21 +01:00 committed by GitHub
parent 547beac19f
commit 07b914111d

View file

@ -8,7 +8,7 @@ function ca (req, res) {
.then(ca => res.json({ ca }))
.catch(error => {
logger.error(error.message)
res.status(403).json({ error: 'forbidden' })
return res.status(403).json({ error: 'forbidden' })
})
}