Commit 14e75ca2 authored by esatakpunar's avatar esatakpunar

update db

parent 07f53083
This source diff could not be displayed because it is too large. You can view the blob instead.
const { faker } = require('@faker-js/faker');
const { faker } = require("@faker-js/faker");
const generateVendors = function (itemCount) {
const vendors = []
const vendors = [];
for (let index = 1; index < itemCount; index++) {
customers.push(newFakedVendor());
vendors.push(newFakedVendor());
}
return vendors;
}
};
function newFakedVendor() {
const firstName = faker.name.firstName();
......@@ -17,14 +17,14 @@ function newFakedVendor() {
const id = faker.datatype.uuid();
return {
"id": id,
"firstName": firstName,
"lastName": lastName,
"email": email,
"country": faker.address.country(),
"city": faker.address.cityName(),
"image": faker.image.avatar(),
}
id: id,
firstName: firstName,
lastName: lastName,
email: email,
country: faker.address.country(),
city: faker.address.cityName(),
image: faker.image.avatar(),
};
}
module.exports = generateVendors
\ No newline at end of file
module.exports = generateVendors;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment