Skip to content

Commit

Permalink
Merge pull request #250 from sopt-makers/fix/249-get-schedule-api-rol…
Browse files Browse the repository at this point in the history
…lback_T-10697

[FIX] iOS 무한로딩 원인 DTO 롤백
  • Loading branch information
yummygyudon authored Apr 5, 2024
2 parents 689e429 + e39d0ef commit 7c9cbcf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public enum LectureFailureCode implements FailureCode {
INVALID_ATTENDANCE(BAD_REQUEST,"존재하지 않는 출석 세션입니다."),
ENDED_ATTENDANCE(BAD_REQUEST, "차 출석이 이미 종료되었습니다."),
ENDED_FIRST_ATTENDANCE(BAD_REQUEST, "1차 출석이 이미 종료되었습니다."),
ENDED_SECOND_ATTENDANCE(BAD_REQUEST, " 출석이 이미 종료되었습니다."),
ENDED_SECOND_ATTENDANCE(BAD_REQUEST, "2차 출석이 이미 종료되었습니다."),
INVALID_COUNT_SESSION(BAD_REQUEST,"세션의 개수가 올바르지 않습니다."),
INVALID_LECTURE(BAD_REQUEST,"존재하지 않는 세션입니다."),
NO_SESSION(BAD_REQUEST,"오늘 세션이 없습니다."),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package org.sopt.makers.operation.dto;

import static com.fasterxml.jackson.annotation.JsonInclude.Include.*;

import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.AccessLevel;
import lombok.Builder;
Expand All @@ -11,7 +9,7 @@
public record BaseResponse<T> (
boolean success,
String message,
@JsonInclude(value = NON_NULL)
// @JsonInclude(value = NON_NULL)
T data
) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Component;
import org.springframework.web.client.HttpClientErrorException;
import org.springframework.web.client.HttpServerErrorException;
import org.springframework.web.client.RestTemplate;

import lombok.RequiredArgsConstructor;
Expand All @@ -34,7 +35,7 @@ public void send(AlarmSenderRequest request) {
val host = valueConfig.getNOTIFICATION_URL();
val entity = getEntity(request);
restTemplate.postForEntity(host, entity, AlarmSenderRequest.class);
} catch (HttpClientErrorException e) {
} catch (HttpServerErrorException | HttpClientErrorException e) {
throw new AlarmException(FAIL_SEND_ALARM);
}
}
Expand Down

0 comments on commit 7c9cbcf

Please sign in to comment.