respond unauthorized if not logged in

This commit is contained in:
Sebastian Rindom committed 2020-07-12 12:15:45 +02:00
1 parent 92759c8e47
commit 518bc95f70
1 file changed
+2 -2
@@ -17,9 +17,9 @@ export default async (req, res) => {
["orders"]
)
res.json({ customer: data })
} else {
res.sendStatus(401)
}
res.sendStatus(401)
} catch (err) {
throw err
}