mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Refactoring beer by id page, add delete comment
Refactored the comments ui into various new components, added the delete beer comment by id feature.
This commit is contained in:
@@ -32,9 +32,7 @@ const editBeerPost = async (
|
||||
throw new ServerError('You cannot edit that beer post.', 403);
|
||||
}
|
||||
|
||||
const updated = await editBeerPostById(id, body);
|
||||
|
||||
console.log(updated);
|
||||
await editBeerPostById(id, body);
|
||||
|
||||
res.status(200).json({
|
||||
message: 'Beer post updated successfully',
|
||||
|
||||
Reference in New Issue
Block a user