mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Did more work to beer post page, seed
Worked on comments and beer recs features. Fine tuning database seed amounts.
This commit is contained in:
@@ -23,10 +23,16 @@ const createNewBreweryPosts = async ({
|
||||
const location = faker.address.cityName();
|
||||
const description = faker.lorem.lines(5);
|
||||
const user = users[Math.floor(Math.random() * users.length)];
|
||||
|
||||
const createdAt = faker.date.past(1);
|
||||
breweryPromises.push(
|
||||
prisma.breweryPost.create({
|
||||
data: { name, location, description, postedBy: { connect: { id: user.id } } },
|
||||
data: {
|
||||
name,
|
||||
location,
|
||||
description,
|
||||
postedBy: { connect: { id: user.id } },
|
||||
createdAt,
|
||||
},
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user