File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
avni-server-api/src/main/java/org/avni/server Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -944,6 +944,11 @@ private void createDefaultGenders(Organisation org) {
944944 createGender ("Other" , org );
945945 }
946946
947+ public void setupBaseOrganisationData (Organisation organisation ) {
948+ setupBaseOrganisationMetadata (organisation );
949+ setupBaseOrganisationAdminConfig (organisation );
950+ }
951+
947952 public void setupBaseOrganisationAdminConfig (Organisation organisation ) {
948953 organisationConfigService .createDefaultOrganisationConfig (organisation );
949954 }
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public ResponseEntity save(@RequestBody OrganisationContract request) {
6060 setOrgAccountByIdOrDefault (org , request .getAccountId ());
6161
6262 organisationRepository .save (org );
63- organisationService .setupBaseOrganisationAdminConfig (org );
63+ organisationService .setupBaseOrganisationData (org );
6464 return new ResponseEntity <>(org , HttpStatus .CREATED );
6565 }
6666
You can’t perform that action at this time.
0 commit comments