Skip to content

Commit

Permalink
feat/VIC-837-Admin-can-create-and-edit-team
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanalicic committed Jul 24, 2022
1 parent 7ee2e57 commit 8895644
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ public ResponseEntity<Void> createConsultantAgency(@PathVariable String consulta
public ResponseEntity<Void> setConsultantAgencies(String consultantId,
List<CreateConsultantAgencyDTO> agencyList) {
var notFilteredAgencyList = new ArrayList<>(agencyList);
appointmentService.syncAgencies(consultantId, notFilteredAgencyList);
var agencyIdsForDeletions = consultantAdminFacade.filterAgencyListForDeletion(consultantId, agencyList);
consultantAdminFacade.markConsultantAgenciesForDeletion(consultantId, agencyIdsForDeletions);
consultantAdminFacade.filterAgencyListForCreation(consultantId, agencyList);
consultantAdminFacade.prepareConsultantAgencyRelation(consultantId, agencyList);
consultantAdminFacade.completeConsultantAgencyAssigment(consultantId, agencyList);
appointmentService.syncAgencies(consultantId, notFilteredAgencyList);
return ResponseEntity.ok().build();
}

Expand Down

0 comments on commit 8895644

Please sign in to comment.