Skip to content

Commit 2795ad1

Browse files
dlsrks1021silver-eunjoo
authored andcommitted
♻️ refactor: 세션 타임아웃 값을 환경변수로 대치 (#105)
1 parent 9d47481 commit 2795ad1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

backend/src/main/java/io/f1/backend/domain/user/dao/UserRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface UserRepository extends JpaRepository<User, Long> {
2525

2626
@Query(
2727
"SELECT new io.f1.backend.domain.admin.dto.UserResponse(u.id, u.nickname, u.lastLogin,"
28-
+ " u.createdAt) FROM User u WHERE LOWER(u.nickname) LIKE CONCAT('%',"
29-
+ " LOWER(:nickname), '%')")
28+
+ " u.createdAt) FROM User u WHERE LOWER(u.nickname) LIKE CONCAT('%',"
29+
+ " LOWER(:nickname), '%')")
3030
Page<UserResponse> findUsersByNicknameContaining(String nickname, Pageable pageable);
3131
}

backend/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ server:
6464
same-site: None
6565
secure: true
6666
http-only: true
67-
timeout: 60
67+
timeout: ${SESSION_TIMEOUT}
6868

0 commit comments

Comments
 (0)