Skip to content

Commit 200126c

Browse files
committed
feat: 식사시간 등록 시 정렬 후 보내는 기능 추가 #68
1 parent f2022c8 commit 200126c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

app/src/main/java/com/kuit/ourmenu/data/repository/AuthRepository.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import javax.inject.Singleton
1717
class AuthRepository @Inject constructor(
1818
private val authService: AuthService,
1919
private val tokenManager: TokenManager,
20-
private val kakaoRepository: KakaoRepository
2120
) {
2221
suspend fun signup(
2322
email: String?,

app/src/main/java/com/kuit/ourmenu/ui/signup/viewmodel/SignupViewModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class SignupViewModel @Inject constructor(
163163

164164
authRepository.signup(
165165
email = completeEmail,
166-
mealTime = _uiState.value.selectedTimes.map {
166+
mealTime = _uiState.value.selectedTimes.sorted().map {
167167
"${it.toString().padStart(2, '0')}:00:00"
168168
},
169169
password = _uiState.value.password.takeIf { it.isNotEmpty() },
@@ -194,7 +194,7 @@ class SignupViewModel @Inject constructor(
194194

195195
authRepository.signup(
196196
email = kakaoEmail,
197-
mealTime = _uiState.value.selectedTimes.map {
197+
mealTime = _uiState.value.selectedTimes.sorted().map {
198198
"${it.toString().padStart(2, '0')}:00:00"
199199
},
200200
password = _uiState.value.password.takeIf { it.isNotEmpty() },

0 commit comments

Comments
 (0)