some beta stuff
This commit is contained in:
parent
2c480909ee
commit
4eddd1a0c7
7 changed files with 82 additions and 9 deletions
|
@ -14,7 +14,12 @@ router.post('/', async (req, res, next) => {
|
|||
let { username } = res.auth;
|
||||
let { post, type, id } = req.body;
|
||||
|
||||
if (!username || !post || !id || !type) {
|
||||
if (!username) {
|
||||
apiStat(res, next, 'Log in to chat with the community.')
|
||||
return;
|
||||
}
|
||||
|
||||
if (!post || !id || !type) {
|
||||
apiStat(res, next, 'Fields are missing.')
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue