Skip to content

Commit

Permalink
fix random citizen generation
Browse files Browse the repository at this point in the history
  • Loading branch information
eike-hass committed Sep 6, 2024
1 parent 643d2b3 commit c8b086f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions backend/src/webapp/webapp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,27 +258,27 @@ export class WebAppService {
break;

case '**TEMPLATE_FIRSTNAME':
obj[key] = faker.person.firstName;
obj[key] = faker.person.firstName();
break;

case '**TEMPLATE_LASTNAME':
obj[key] = faker.person.firstName;
obj[key] = faker.person.lastName();
break;

case '**TEMPLATE_NATIONALITY':
obj[key] = faker.location.countryCode;
obj[key] = faker.location.countryCode();
break;

case '**TEMPLATE_BIRTHPLACE':
obj[key] = faker.location.city;
obj[key] = faker.location.city();
break;

case '**TEMPLATE_COUNTRY':
obj[key] = faker.location.country;
obj[key] = faker.location.country();
break;

case '**TEMPLATE_PHONE':
obj[key] = faker.phone.number;
obj[key] = faker.phone.number();
break;

case '**TEMPLATE_BIRTHDAY':
Expand Down

0 comments on commit c8b086f

Please sign in to comment.