From c8b086fb4232c6e970fec2c0e2f5d4aeb2bf32ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eike=20Ha=C3=9F?= Date: Fri, 6 Sep 2024 14:46:33 +0200 Subject: [PATCH] fix random citizen generation --- backend/src/webapp/webapp.service.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/src/webapp/webapp.service.ts b/backend/src/webapp/webapp.service.ts index dd6b89d..48da398 100644 --- a/backend/src/webapp/webapp.service.ts +++ b/backend/src/webapp/webapp.service.ts @@ -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':