Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bencodes07 committed Sep 9, 2024
1 parent e32b0cf commit e9c437e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/MeetMate/company/CompanyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit e9c437e

Please sign in to comment.