diff --git a/server/src/routes/posts.ts b/server/src/routes/posts.ts index 17c94514..83f70e2a 100644 --- a/server/src/routes/posts.ts +++ b/server/src/routes/posts.ts @@ -17,6 +17,7 @@ posts.post( title: Joi.string().required(), files: Joi.any().required(), visibility: Joi.string().required(), + userId: Joi.string().required(), }, }), async (req, res, next) => {