Skip to content

Commit

Permalink
feat: 임시 배포용 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
SHEOMM committed Mar 8, 2024
1 parent 11db643 commit a26af1e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public class AttendanceController {
private final AttendanceService attendanceService;
private final AttendeeService attendeeService;


// FIXME 로직 문제. -> 출석 중복 체크.
@PostMapping
public ResponseEntity<AttendResponseDto> attend(@RequestBody AttendRequestDto attendRequestDto){
String attendeeName = attendRequestDto.getAttendeeName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public CurrentSessionDto getCurrentSessionInfo(Long courseId){
.build();
}

// TODO : 리팩토링 필수 말도 안됨. activate 확인은 RDB에 가는 게 아니라 redis에 해당 sessionId가 있는지만 확인하면 된다.
@Transactional(readOnly = true)
@Override
public List<SessionAttendanceInfo> getRecentFiveSessions(Long courseId){
Expand Down
12 changes: 12 additions & 0 deletions src/main/resources/application-temporary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
spring.config.activate.on-profile: prod

spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/areyouhere?createDatabaseIfNotExist=true&useSSL=false&serverTimezone=Asia/Seoul&CharacterEncoding=UTF-8
username: root
password:
data:
redis:
host: localhost
port: 6379

0 comments on commit a26af1e

Please sign in to comment.