muisawe / simple-social-media

0 stars 0 forks source link

Add req.body validation #13

Open MMortaga opened 2 years ago

MMortaga commented 2 years ago

https://github.com/muisawe/simple-social-media/blob/ba00f2c0de47f5eb18f943ca6dd2dbead77655cd/controllers/post.js#L150

This can be undefined, add some validation before pulling attributes from the body.