im stupid

This commit is contained in:
Tyler Murphy 2023-01-23 21:45:32 -05:00
parent 15f2b32511
commit 7391e75fba

View file

@ -11,7 +11,7 @@ router.post('/create', (req, res) => {
])
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) {
res.status(500).send({msg: 'Failed to create post'})
return