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

@@ -36,7 +36,7 @@ const createNewBeerPosts = async ({
const user = users[Math.floor(Math.random() * users.length)];
const beerType = beerTypes[Math.floor(Math.random() * beerTypes.length)];
const breweryPost = breweryPosts[Math.floor(Math.random() * breweryPosts.length)];
const createdAt = faker.date.past(1);
const createdAt = faker.date.past({ years: 1 });
const abv = Math.floor(Math.random() * (12 - 4) + 4);
const ibu = Math.floor(Math.random() * (60 - 10) + 10);