im stupid
This commit is contained in:
parent
15f2b32511
commit
7391e75fba
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ router.post('/create', (req, res) => {
|
||||||
])
|
])
|
||||||
if (body === undefined) return
|
if (body === undefined) return
|
||||||
|
|
||||||
const id = cache.addPost(res.locals.user.id, content)
|
const id = cache.addPost(res.locals.user.id, body.content)
|
||||||
if (id === -1) {
|
if (id === -1) {
|
||||||
res.status(500).send({msg: 'Failed to create post'})
|
res.status(500).send({msg: 'Failed to create post'})
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue