Skip to content

Commit

Permalink
Added debug
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed May 22, 2024
1 parent 17377d2 commit 2e223b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public SdcSchoolCollectionService(SdcSchoolCollectionRepository sdcSchoolCollect
public SdcSchoolCollectionEntity saveSdcSchoolCollection(SdcSchoolCollectionEntity curSDCSchoolEntity, List<SdcSchoolCollectionStudentEntity> finalStudents, List<UUID> removedStudents) {
log.debug("Removing duplicate records by sdcSchoolCollectionStudentIDs: {}", removedStudents);
var duplicatesToDelete = this.sdcDuplicateRepository.findAllBySdcDuplicateStudentEntities_SdcSchoolCollectionStudentEntity_SdcSchoolCollectionStudentIDIn(removedStudents);
log.info("Removing {} duplicate records from SDC school collection: {}", duplicatesToDelete.size(), curSDCSchoolEntity.getSdcSchoolCollectionID());
log.debug("Removing {} duplicate records from SDC school collection: {}", duplicatesToDelete.size(), curSDCSchoolEntity.getSdcSchoolCollectionID());
this.sdcDuplicateRepository.deleteAll(duplicatesToDelete);

List<SdcSchoolCollectionStudentEntity> newStudents = finalStudents.stream().filter(sdcSchoolCollectionStudentEntity -> sdcSchoolCollectionStudentEntity.getSdcSchoolCollectionStudentID() == null).toList();
Expand Down

0 comments on commit 2e223b8

Please sign in to comment.