Skip to content

Commit

Permalink
#776 | Setup base org metadata as well during org creation
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Aug 21, 2024
1 parent 96f966b commit e8848d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -944,6 +944,11 @@ private void createDefaultGenders(Organisation org) {
createGender("Other", org);
}

public void setupBaseOrganisationData(Organisation organisation) {
setupBaseOrganisationMetadata(organisation);
setupBaseOrganisationAdminConfig(organisation);
}

public void setupBaseOrganisationAdminConfig(Organisation organisation) {
organisationConfigService.createDefaultOrganisationConfig(organisation);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public ResponseEntity save(@RequestBody OrganisationContract request) {
setOrgAccountByIdOrDefault(org, request.getAccountId());

organisationRepository.save(org);
organisationService.setupBaseOrganisationAdminConfig(org);
organisationService.setupBaseOrganisationData(org);
return new ResponseEntity<>(org, HttpStatus.CREATED);
}

Expand Down

0 comments on commit e8848d5

Please sign in to comment.