mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Feat: create user page, add user bio and avatar
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user