From e9c437e8bc3c1f85c7c45ddfca6f58d122cdc716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ben=20B=C3=B6ckmann?= <75972296+bencodes07@users.noreply.github.com> Date: Mon, 9 Sep 2024 11:48:15 +0200 Subject: [PATCH] bug fix --- src/main/java/com/MeetMate/company/CompanyService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/MeetMate/company/CompanyService.java b/src/main/java/com/MeetMate/company/CompanyService.java index b282145..49f53f7 100644 --- a/src/main/java/com/MeetMate/company/CompanyService.java +++ b/src/main/java/com/MeetMate/company/CompanyService.java @@ -49,7 +49,7 @@ public void createCompany(String companyName, String ownerEmail, String ownerNam ownerData.add("role", UserRole.COMPANY_OWNER.toString()); ownerData.add("associatedCompany", String.valueOf(companyId)); - userController.registerNewUser(ownerData); + userController.registerNewUser(ownerEmail, ownerPassword, ownerName); companyRepository.save(new Company(companyId, companyName, ownerEmail)); sequenceService.incrementId();