diff --git a/PulseHealth/Services/APIService.swift b/PulseHealth/Services/APIService.swift index 53eb772..eeb076e 100644 --- a/PulseHealth/Services/APIService.swift +++ b/PulseHealth/Services/APIService.swift @@ -51,7 +51,7 @@ class APIService { guard !newToken.isEmpty else { throw APIError.unauthorized } await MainActor.run { auth.updateTokens(accessToken: newToken, refreshToken: refreshResp.refreshToken) } // Retry original request with new token - let retryReq = makeRequest(path, method: method, token: newToken, body: body) + let retryReq = try makeRequest(path, method: method, token: newToken, body: body) let (retryData, retryResp) = try await URLSession.shared.data(for: retryReq) guard let retryHttp = retryResp as? HTTPURLResponse else { throw APIError.networkError("Нет ответа") } if retryHttp.statusCode == 401 { throw APIError.unauthorized } diff --git a/project.yml b/project.yml index f048917..89d497a 100644 --- a/project.yml +++ b/project.yml @@ -20,7 +20,6 @@ targets: DEVELOPMENT_TEAM: V9AG8JTFLC ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon capabilities: - HealthKit: true BackgroundModes: modes: - processing