fix: add await to beer style api route to fix api response parse error

This commit is contained in:
Aaron William Po
2023-11-12 23:37:32 -05:00
parent fd1f2b101f
commit f55570fc1c

View File

@@ -19,7 +19,7 @@ const getAllBeersByBeerStyle = async (
// eslint-disable-next-line @typescript-eslint/naming-convention
const { page_size, page_num, id } = req.query;
const beers = getBeerPostsByBeerStyleId({
const beers = await getBeerPostsByBeerStyleId({
pageNum: parseInt(page_num, 10),
pageSize: parseInt(page_size, 10),
styleId: id,