aboutsummaryrefslogtreecommitdiffstats
path: root/lib/upload.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-28 00:54:08 -0800
committerAdam Soltys <[email protected]>2023-01-28 00:54:08 -0800
commit283ffc9d8442ecbbc85c0c40167cc03f20f64a40 (patch)
tree1aa1c4b498e37f2b0668a363c45991e6ee036ac6 /lib/upload.js
parentf0543b6d94081f43a265bb9f754a654df9c4268a (diff)
downloadcoinos-server-283ffc9d8442ecbbc85c0c40167cc03f20f64a40.tar.gz
coinos-server-283ffc9d8442ecbbc85c0c40167cc03f20f64a40.zip
parse ints
Diffstat (limited to 'lib/upload.js')
-rw-r--r--lib/upload.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/upload.js b/lib/upload.js
index 5f5aebed..2f8180a0 100644
--- a/lib/upload.js
+++ b/lib/upload.js
@@ -12,6 +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();