mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
Fix variable name in checkIfBeerPostIsLiked function
This commit is contained in:
@@ -73,7 +73,8 @@ export const checkIfBeerPostIsLiked = async (
|
|||||||
res: NextApiResponse<z.infer<typeof APIResponseValidationSchema>>,
|
res: NextApiResponse<z.infer<typeof APIResponseValidationSchema>>,
|
||||||
) => {
|
) => {
|
||||||
const user = req.user!;
|
const user = req.user!;
|
||||||
const beerPostId = req.query.id as string;
|
|
||||||
|
const beerPostId = req.query.postId as string;
|
||||||
|
|
||||||
const alreadyLiked = await findBeerPostLikeByIdService({
|
const alreadyLiked = await findBeerPostLikeByIdService({
|
||||||
beerPostId,
|
beerPostId,
|
||||||
|
|||||||
Reference in New Issue
Block a user