diff options
| author | Adam Soltys <[email protected]> | 2023-02-27 05:49:10 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-02-27 05:49:22 +0000 |
| commit | 56d1bb6cde1f0ce8cac330f4fd68670312141af8 (patch) | |
| tree | a9caf59815f16aa6e92908278e5e2e0de4f1d1a6 /lib/upload.js | |
| parent | af35a42356c46b7625e16f3a00567d027b8c8ba6 (diff) | |
| download | coinos-server-56d1bb6cde1f0ce8cac330f4fd68670312141af8.tar.gz coinos-server-56d1bb6cde1f0ce8cac330f4fd68670312141af8.zip | |
don't set pubkey of migrated user
Diffstat (limited to 'lib/upload.js')
| -rw-r--r-- | lib/upload.js | 2 |
1 files changed, 1 insertions, 1 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(); |
