Refactor api requests and components out of pages

This commit is contained in:
Aaron William Po
2023-01-28 21:05:20 -05:00
parent a182f55280
commit fe277d5964
32 changed files with 1455 additions and 302 deletions

View File

@@ -20,6 +20,7 @@ const createNewBeerImages = async ({
prisma.beerImage.create({
data: {
url: 'https://picsum.photos/900/1600',
alt: 'Placeholder beer image.',
beerPost: { connect: { id: beerPost.id } },
},
}),

View File

@@ -21,6 +21,7 @@ const createNewBreweryImages = async ({
prisma.breweryImage.create({
data: {
url: 'https://picsum.photos/900/1600',
alt: 'Placeholder brewery image.',
breweryPost: { connect: { id: breweryPost.id } },
},
}),