mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-23 10:52:30 +01:00
fixed timeout request by not throwing an issue
This commit is contained in:
parent
466e971f83
commit
a222935e51
@ -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) return;
|
||||
if (!req.file) throw new HTTPError("Invalid request signature");
|
||||
|
||||
const { buffer, mimetype, size, originalname, fieldname } = req.file;
|
||||
const { channel_id } = req.params;
|
||||
|
Loading…
Reference in New Issue
Block a user