respond unauthorized if not logged in
This commit is contained in:
@@ -17,9 +17,9 @@ export default async (req, res) => {
|
|||||||
["orders"]
|
["orders"]
|
||||||
)
|
)
|
||||||
res.json({ customer: data })
|
res.json({ customer: data })
|
||||||
|
} else {
|
||||||
|
res.sendStatus(401)
|
||||||
}
|
}
|
||||||
|
|
||||||
res.sendStatus(401)
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user