Feat: create user page, add user bio and avatar

This commit is contained in:
Aaron William Po
2023-11-05 21:54:09 -05:00
parent fcc43c305c
commit 7f9ddb40a1
26 changed files with 324 additions and 79 deletions

View File

@@ -20,6 +20,7 @@ const getBeerPosts = async (
const pageSize = parseInt(req.query.page_size, 10);
const beerPosts = await getAllBeerPosts({ pageNum, pageSize });
const beerPostCount = await DBClient.instance.beerPost.count();
res.setHeader('X-Total-Count', beerPostCount);

View File

@@ -33,7 +33,7 @@ const createBreweryPost = async (
const [latitude, longitude] = geocoded.center;
const location = await DBClient.instance.location.create({
const location = await DBClient.instance.breweryLocation.create({
data: {
address,
city,