Skip to content

Commit

Permalink
[CHORE] #87 : signInUseCase 참조 repo : authRepoistory -> signInReposit…
Browse files Browse the repository at this point in the history
…ory로 변경
  • Loading branch information
jeongjaino committed Jan 11, 2024
1 parent 4ee1255 commit 3197b17
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.wap.wapp.core.domain.usecase.auth

import com.wap.wapp.core.data.repository.auth.AuthRepository
import com.wap.wapp.core.data.repository.auth.SignInRepository
import com.wap.wapp.core.data.repository.user.UserRepository
import com.wap.wapp.core.domain.model.AuthState
import com.wap.wapp.core.domain.model.AuthState.SIGN_IN
Expand All @@ -10,11 +10,11 @@ import javax.inject.Inject

@ActivityScoped
class SignInUseCase @Inject constructor(
private val authRepository: AuthRepository,
private val signInRepository: SignInRepository,
private val userRepository: UserRepository,
) {
suspend operator fun invoke(email: String): Result<AuthState> = runCatching {
val userId = authRepository.signIn(email)
val userId = signInRepository.signIn(email)
.getOrThrow()

userRepository.getUserProfile(userId)
Expand Down

0 comments on commit 3197b17

Please sign in to comment.