Skip to content

Commit

Permalink
[REFACTOR] #141 : validationWapCode -> validateMemberCode
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Mar 3, 2024
1 parent 8b54e72 commit 57b52b7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ interface AuthRepository {

suspend fun isUserSignIn(): Result<Boolean>

suspend fun validationWapCode(code: String): Result<Boolean>
suspend fun validateMemberCode(code: String): Result<Boolean>
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class AuthRepositoryImpl @Inject constructor(

override suspend fun isUserSignIn(): Result<Boolean> = authDataSource.isUserSignIn()

override suspend fun validationWapCode(code: String): Result<Boolean> =
authDataSource.validationWapCode(code)
override suspend fun validateMemberCode(code: String): Result<Boolean> =
authDataSource.validateMemberCode(code)
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ interface AuthDataSource {

suspend fun isUserSignIn(): Result<Boolean>

suspend fun validationWapCode(code: String): Result<Boolean>
suspend fun validateMemberCode(code: String): Result<Boolean>
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class AuthDataSourceImpl @Inject constructor(
}
}

override suspend fun validationWapCode(code: String): Result<Boolean> = runCatching {
override suspend fun validateMemberCode(code: String): Result<Boolean> = runCatching {
val result = firebaseFirestore.collection(CODES_COLLECTION)
.whereEqualTo("user", code)
.get()
Expand Down

0 comments on commit 57b52b7

Please sign in to comment.