Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import foregg.foreggserver.service.userService.UserQueryService;
import foregg.foreggserver.util.DateUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

Expand All @@ -28,6 +29,7 @@
@Service
@Transactional(readOnly = true)
@RequiredArgsConstructor
@Slf4j
public class InjectionQueryService {

private final UserQueryService userQueryService;
Expand Down Expand Up @@ -116,7 +118,7 @@ private void isValidateRecord(Record record, RecordType type, String time, Strin
if (!intervalDates.contains(date)) {
throw new RecordHandler(INVALID_RECORD_DATE);
}
if (!record.getRepeat_date().contains(DateUtil.getKoreanDayOfWeek(date))) {
if (!record.getRepeat_date().equals("매일") && !record.getRepeat_date().contains(DateUtil.getKoreanDayOfWeek(date))) {
throw new RecordHandler(INVALID_RECORD_DATE);
}
}
Expand Down
Loading