Added more staff data

This commit is contained in:
Erik Tiekstra
2021-04-14 08:46:35 +02:00
parent 0b0dd8e107
commit acfe221bab
12 changed files with 196 additions and 36 deletions

View File

@@ -11,7 +11,7 @@ function generateParticipants(amount = 10) {
const participants = [];
for (let i = 1; i <= amount; ++i) {
participants.push({
const participant = {
id: faker.random.uuid(),
firstName: faker.name.firstName(),
lastName: faker.name.lastName(),
@@ -22,7 +22,8 @@ function generateParticipants(amount = 10) {
startDate: faker.date.recent(),
endDate: faker.date.future(),
handleBefore: faker.date.soon(),
});
};
participants.push({ ...participant, fullName: `${participant.firstName} ${participant.lastName}` });
}
return participants;