mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 13:12:19 +00:00
fixed wrong wording in HTTPError
This commit is contained in:
1 parent
560e1a67e8
commit
c68488d33d
1 file changed
+1
-1
@@ -11,7 +11,7 @@ const router = Router();
|
||||
router.post("/:channel_id", multer.single("file"), async (req: Request, res: Response) => {
|
||||
if (req.headers.signature !== Config.get().security.requestSignature)
|
||||
throw new HTTPError("Invalid request signature");
|
||||
if (!req.file) throw new HTTPError("Invalid request signature");
|
||||
if (!req.file) throw new HTTPError("file missing");
|
||||
|
||||
const { buffer, mimetype, size, originalname, fieldname } = req.file;
|
||||
const { channel_id } = req.params;
|
||||
|
||||
Reference in new issue
Block a user