aboutsummaryrefslogtreecommitdiffstats
path: root/routes/assets.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2021-09-23 23:18:00 -0700
committerAdam Soltys <[email protected]>2021-09-23 23:19:42 -0700
commit6fe6c1b9d715e7501ada4505af46062714a3d055 (patch)
tree8e668f8a4e0079da7d5d04fd3b6275f521d52caa /routes/assets.js
parent18814242ad055ecd6f9de1d23209958e12aee69c (diff)
downloadcoinos-server-6fe6c1b9d715e7501ada4505af46062714a3d055.tar.gz
coinos-server-6fe6c1b9d715e7501ada4505af46062714a3d055.zip
request logger
Diffstat (limited to 'routes/assets.js')
-rw-r--r--routes/assets.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/routes/assets.js b/routes/assets.js
index b33e43b4..14d2c705 100644
--- a/routes/assets.js
+++ b/routes/assets.js
@@ -76,6 +76,8 @@ app.post(
const { id: user_id } = req.user;
const blind = false;
+ if (!user_id) throw new Error("unauthorized");
+
const {
address,
domain,