From 7391e75fba3a38fef277389b313d101293218a35 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Mon, 23 Jan 2023 21:45:32 -0500 Subject: [PATCH] im stupid --- src/api/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/posts.js b/src/api/posts.js index 974e4c4..1989d39 100644 --- a/src/api/posts.js +++ b/src/api/posts.js @@ -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