Skip to content

Commit

Permalink
Update cache write intercetptor to proceed rather than return value s…
Browse files Browse the repository at this point in the history
…o additional interceptors can be chained to it if desired
  • Loading branch information
designatednerd committed Aug 19, 2020
1 parent 6ab01c6 commit 6af46dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/Apollo/LegacyCacheWriteInterceptor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public class LegacyCacheWriteInterceptor: ApolloInterceptor {
}
}

chain.returnValueAsync(for: request,
value: result,
completion: completion)
chain.proceedAsync(request: request,
response: createdResponse,
completion: completion)
}.catch { error in
chain.handleErrorAsync(error,
request: request,
Expand Down

0 comments on commit 6af46dc

Please sign in to comment.