Chore: update faker to replace deprecated methods, add canadianCities for location data

This commit is contained in:
Aaron William Po
2023-06-02 23:11:30 -04:00
parent b97228cfa1
commit e3da430425
15 changed files with 10469 additions and 46 deletions

View File

@@ -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,