Skip to content

Commit

Permalink
delete clearReviewDayRepo method
Browse files Browse the repository at this point in the history
  • Loading branch information
nora-kauczor committed Jan 1, 2025
1 parent 2903986 commit ae6125f
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public class ReviewDayService {
private final CalendarService calendarService;

public ReviewDay getReviewDay(String languageString, String userId, LocalDate date) throws LanguageNotFoundException {
if (date.getDayOfMonth() == 1){clearReviewDayRepo();}
Language language = Language.getEnumByString(languageString);
List<String> idList = calendarService.getVocabIdsOfDateAsList (date, language, userId);
Optional<ReviewDay> optionalReviewDay = Optional.ofNullable(reviewDayRepo.getByDayAndUserIdAndLanguage (date, userId, language));
Expand Down Expand Up @@ -64,7 +63,5 @@ public ReviewDay setVocabReviewed(String vocabId, String languageString, String
return reviewDayRepo.save(updatedReviewDay);
}

public void clearReviewDayRepo(){
reviewDayRepo.deleteAll();
}

}

0 comments on commit ae6125f

Please sign in to comment.