Skip to content

Commit

Permalink
Fix response decoding for bulk trait upload (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctreffs authored Feb 22, 2023
1 parent f18d390 commit f57093d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FlagsmithClient/Classes/Flagsmith.swift
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ public class Flagsmith {
public func setTraits(_ traits: [Trait],
forIdentity identity: String,
completion: @escaping (Result<[Trait], Error>) -> Void) {
apiManager.request(.postTraits(identity: identity, traits: traits)) { (result: Result<[Trait], Error>) in
completion(result)
apiManager.request(.postTraits(identity: identity, traits: traits)) { (result: Result<Traits, Error>) in
completion(result.map(\.traits))
}
}

Expand Down

0 comments on commit f57093d

Please sign in to comment.