diff --git a/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepository.kt b/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepository.kt index ba276f18..daecb505 100644 --- a/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepository.kt +++ b/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepository.kt @@ -7,5 +7,5 @@ interface AuthRepository { suspend fun isUserSignIn(): Result - suspend fun validationWapCode(code: String): Result + suspend fun validateMemberCode(code: String): Result } diff --git a/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepositoryImpl.kt b/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepositoryImpl.kt index 4ca9e1ed..635eda70 100644 --- a/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepositoryImpl.kt +++ b/core/data/src/main/java/com/wap/wapp/core/data/repository/auth/AuthRepositoryImpl.kt @@ -12,6 +12,6 @@ class AuthRepositoryImpl @Inject constructor( override suspend fun isUserSignIn(): Result = authDataSource.isUserSignIn() - override suspend fun validationWapCode(code: String): Result = - authDataSource.validationWapCode(code) + override suspend fun validateMemberCode(code: String): Result = + authDataSource.validateMemberCode(code) } diff --git a/core/network/src/main/java/com/wap/wapp/core/network/source/auth/AuthDataSource.kt b/core/network/src/main/java/com/wap/wapp/core/network/source/auth/AuthDataSource.kt index e5e2b3ce..48ef7f0b 100644 --- a/core/network/src/main/java/com/wap/wapp/core/network/source/auth/AuthDataSource.kt +++ b/core/network/src/main/java/com/wap/wapp/core/network/source/auth/AuthDataSource.kt @@ -7,5 +7,5 @@ interface AuthDataSource { suspend fun isUserSignIn(): Result - suspend fun validationWapCode(code: String): Result + suspend fun validateMemberCode(code: String): Result } diff --git a/core/network/src/main/java/com/wap/wapp/core/network/source/auth/AuthDataSourceImpl.kt b/core/network/src/main/java/com/wap/wapp/core/network/source/auth/AuthDataSourceImpl.kt index 14aa4ec9..cc5f46d1 100644 --- a/core/network/src/main/java/com/wap/wapp/core/network/source/auth/AuthDataSourceImpl.kt +++ b/core/network/src/main/java/com/wap/wapp/core/network/source/auth/AuthDataSourceImpl.kt @@ -49,7 +49,7 @@ class AuthDataSourceImpl @Inject constructor( } } - override suspend fun validationWapCode(code: String): Result = runCatching { + override suspend fun validateMemberCode(code: String): Result = runCatching { val result = firebaseFirestore.collection(CODES_COLLECTION) .whereEqualTo("user", code) .get()