Skip to content

Commit

Permalink
MOB-1949 - Force refresh cache to get latest txs (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg-Pecheneg authored Apr 5, 2024
1 parent c5c6660 commit 5b9b3c6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -913,16 +913,15 @@ extension Endpoint {
if let chain {
queryItems.append(URLQueryItem(name: "symbols", value: chain))
}
var headers = NetworkService.profilesAPIHeader
if forceRefresh {
headers = headers.appending(dict2: ["refreshCache" : String(Date().timeIntervalSince1970)])
queryItems.append(URLQueryItem(name: "forceRefresh", value: String(Int(Date().timeIntervalSince1970))))
}
return Endpoint(
host: NetworkConfig.baseProfileHost,
path: "/profile/user/\(wallet)/transactions",
queryItems: queryItems,
body: "",
headers: headers
headers: NetworkService.profilesAPIHeader
)
}
}
Expand Down

0 comments on commit 5b9b3c6

Please sign in to comment.