Changed mock-api to support node 14

This commit is contained in:
Erik Tiekstra
2021-04-28 12:29:05 +02:00
parent ddb542bdf2
commit edbd508e10
3 changed files with 12 additions and 12 deletions

View File

@@ -12,13 +12,13 @@ function generateParticipants(amount = 10) {
for (let i = 1; i <= amount; ++i) {
const participant = {
id: faker.random.uuid(),
id: faker.datatype.uuid(),
firstName: faker.name.firstName(),
lastName: faker.name.lastName(),
status: STATUSES[Math.floor(Math.random() * STATUSES.length)],
service: SERVICES[Math.floor(Math.random() * SERVICES.length)].name,
nextStep: STEPS[Math.floor(Math.random() * STEPS.length)],
errandNumber: faker.random.number({ min: 100000, max: 999999 }),
errandNumber: faker.datatype.number({ min: 100000, max: 999999 }),
startDate: faker.date.recent(),
endDate: faker.date.future(),
handleBefore: faker.date.soon(),