Skip to content

Commit ab54bc2

Browse files
committed
refactor(be): Rename method and fix import path
1 parent e3f713c commit ab54bc2

File tree

4 files changed

+3
-35
lines changed

4 files changed

+3
-35
lines changed

.env.example

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/main/kotlin/com/back/koreaTravelGuide/domain/userChat/chatroom/controller/ChatRoomController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ChatRoomController(
2727
@RequestBody req: ChatRoomStartRequest,
2828
): ResponseEntity<ApiResponse<ChatRoomResponse>> {
2929
val authenticatedId = requesterId ?: throw AccessDeniedException("인증이 필요합니다.")
30-
val room = roomService.checkOneToOneRoom(req.guideId, req.userId, authenticatedId)
30+
val room = roomService.createOneToOneRoom(req.guideId, req.userId, authenticatedId)
3131
return ResponseEntity.ok(ApiResponse(msg = "채팅방 시작", data = ChatRoomResponse.from(room)))
3232
}
3333

src/main/kotlin/com/back/koreaTravelGuide/domain/userChat/chatroom/service/ChatRoomService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ChatRoomService(
1515
private val messageRepository: ChatMessageRepository,
1616
) {
1717
@Transactional
18-
fun checkOneToOneRoom(
18+
fun createOneToOneRoom(
1919
guideId: Long,
2020
userId: Long,
2121
requesterId: Long,

src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ springdoc:
130130
# Weather API 설정
131131
weather:
132132
api:
133-
key: ${WEATHER__API__KEY}
133+
key: ${WEATHER_API_KEY}
134134
base-url: https://apihub.kma.go.kr/api/typ02/openApi/MidFcstInfoService
135135

136136
# Tour API 설정

0 commit comments

Comments
 (0)