File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed
src/main/java/com/somemore
domains/volunteer/service Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change 11package com .somemore .domains .volunteer .service ;
22
33import com .somemore .domains .volunteer .domain .Volunteer ;
4- import com .somemore .domains .volunteer .domain .VolunteerDetail ;
54import com .somemore .domains .volunteer .dto .response .VolunteerRankingResponseDto ;
65import com .somemore .domains .volunteer .repository .VolunteerDetailRepository ;
76import com .somemore .domains .volunteer .repository .VolunteerRepository ;
@@ -70,15 +69,4 @@ public void validateVolunteerExists(UUID volunteerId) {
7069 throw new BadRequestException (NOT_EXISTS_VOLUNTEER .getMessage ());
7170 }
7271 }
73-
74- private Volunteer findVolunteer (UUID volunteerId ) {
75- return volunteerRepository .findById (volunteerId )
76- .orElseThrow (() -> new BadRequestException (NOT_EXISTS_VOLUNTEER ));
77- }
78-
79- private VolunteerDetail findVolunteerDetail (UUID volunteerId ) {
80- return volunteerDetailRepository .findByVolunteerId (volunteerId )
81- .orElseThrow (() -> new BadRequestException (NOT_EXISTS_VOLUNTEER ));
82- }
83-
8472}
Original file line number Diff line number Diff line change 1414@ Transactional
1515public class RegisterNEWVolunteerService implements NEWRegisterVolunteerUseCase {
1616
17- private final NEWVolunteerRepository NEWVolunteerRepository ;
17+ private final NEWVolunteerRepository volunteerRepository ;
1818
1919 @ Override
2020 public void register (UUID userId ) {
2121 NEWVolunteer volunteer = NEWVolunteer .createDefault (userId );
2222
23- NEWVolunteerRepository .save (volunteer );
23+ volunteerRepository .save (volunteer );
2424 }
2525}
You can’t perform that action at this time.
0 commit comments