Skip to content

Commit

Permalink
🔧 코드 리뷰 반영 함수 네이밍 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
loinsir committed Dec 12, 2023
1 parent 4d6f593 commit 5477193
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions iOS/Layover/Layover/Scenes/Login/LoginWorker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ extension LoginWorker: LoginWorkerProtocol {
authManager.login(accessToken: result.data?.accessToken,
refreshToken: result.data?.refreshToken,
loginType: .kakao)
authManager.memberID = await fetchMemberId()
authManager.memberID = await fetchMemberID()
return true
} catch {
os_log(.error, log: .data, "%@", error.localizedDescription)
Expand Down Expand Up @@ -120,15 +120,15 @@ extension LoginWorker: LoginWorkerProtocol {
authManager.login(accessToken: result.data?.accessToken,
refreshToken: result.data?.refreshToken,
loginType: .apple)
authManager.memberID = await fetchMemberId()
authManager.memberID = await fetchMemberID()
return true
} catch {
os_log(.error, log: .data, "%@", error.localizedDescription)
return false
}
}

private func fetchMemberId() async -> Int? {
private func fetchMemberID() async -> Int? {
let endPoint = userEndPointFactory.makeUserInformationEndPoint(with: nil)
do {
let responseData = try await provider.request(with: endPoint)
Expand Down
6 changes: 3 additions & 3 deletions iOS/Layover/Layover/Scenes/SignUpScene/SignUpWorker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ extension SignUpWorker: SignUpWorkerProtocol {
authManager.login(accessToken: data.accessToken,
refreshToken: data.refreshToken,
loginType: .kakao)
authManager.memberID = await fetchMemberId()
authManager.memberID = await fetchMemberID()
return true
} catch {
os_log(.error, log: .data, "Failed to sign up with error: %@", error.localizedDescription)
Expand All @@ -73,15 +73,15 @@ extension SignUpWorker: SignUpWorkerProtocol {
authManager.login(accessToken: data.accessToken,
refreshToken: data.refreshToken,
loginType: .apple)
authManager.memberID = await fetchMemberId()
authManager.memberID = await fetchMemberID()
return true
} catch {
os_log(.error, log: .data, "Failed to sign up with error: %@", error.localizedDescription)
return false
}
}

private func fetchMemberId() async -> Int? {
private func fetchMemberID() async -> Int? {
let endPoint = userEndPointFactory.makeUserInformationEndPoint(with: nil)
do {
let responseData = try await provider.request(with: endPoint)
Expand Down

0 comments on commit 5477193

Please sign in to comment.