bugfix
This commit is contained in:
@@ -40,10 +40,10 @@ const handlePostData = async (req: Request, res: Response, next: NextFunction):
|
||||
post.message = newFilename;
|
||||
post.type = 1;
|
||||
} else {
|
||||
if (!post.message) {
|
||||
res.status(400).send("Post message is not specified");
|
||||
return;
|
||||
}
|
||||
// if (!post.message) {
|
||||
// res.status(400).send("Post message is not specified");
|
||||
// return;
|
||||
// }
|
||||
post.type = 0;
|
||||
post.message = message;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user