diff options
| -rw-r--r-- | lib/upload.js | 2 | ||||
| -rw-r--r-- | routes/lnurl.js | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/upload.js b/lib/upload.js index 954e8d4d..50c26cbf 100644 --- a/lib/upload.js +++ b/lib/upload.js @@ -12,7 +12,7 @@ export default async (req, res) => { params: { type }, user } = req; - console.log("TYPE", type); + if (!["banner", "profile"].includes(type)) throw new Error("invalid upload"); let data = await req.file(); diff --git a/routes/lnurl.js b/routes/lnurl.js index fc8107a3..dcd1657c 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -56,7 +56,6 @@ export default { u = { id: uid, about: u.address, ...pick(u, fields) }; delete u.address; - await s(`user:${pubkey}`, uid); await s(`user:${username.toLowerCase()}`, uid); await s(`user:${uid}`, u); await s(`balance:${uid}`, balance); |
