mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 20:13:49 +00:00
Chore: update faker to replace deprecated methods, add canadianCities for location data
This commit is contained in:
@@ -22,7 +22,6 @@ const createNewBeerImages = async ({
|
||||
joinData: { beerPosts, users },
|
||||
}: CreateNewBeerImagesArgs) => {
|
||||
const prisma = DBClient.instance;
|
||||
const createdAt = faker.date.past(1);
|
||||
|
||||
const beerImageData: BeerImageData[] = [];
|
||||
|
||||
@@ -33,6 +32,7 @@ const createNewBeerImages = async ({
|
||||
const caption = faker.lorem.sentence();
|
||||
const alt = faker.lorem.sentence();
|
||||
const path = imageUrls[Math.floor(Math.random() * imageUrls.length)];
|
||||
const createdAt = faker.date.past({ years: 1 });
|
||||
|
||||
beerImageData.push({
|
||||
path,
|
||||
|
||||
Reference in New Issue
Block a user