Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Implemented getting flags by identity and setting traits at the same time #1

Merged
merged 2 commits into from
May 31, 2024

Conversation

jackforesightmobile
Copy link

No description provided.

FlagsmithClient/Classes/Flagsmith.swift Outdated Show resolved Hide resolved
forIdentity identity: String,
completion: @Sendable @escaping (Result<[Flag], any Error>) -> Void)
{
apiManager.request(.postTraits(identity: identity, traits: traits)) { (result: Result<Traits, Error>) in
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to do something with the error?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've just mirrored the other methods that do things with traits

@jackforesightmobile jackforesightmobile changed the title Implemented getting flags by identity and setting traits at the same Implemented getting flags by identity and setting traits at the same time May 31, 2024
@jackforesightmobile jackforesightmobile merged commit f6a4e64 into main May 31, 2024
4 checks passed
@jackforesightmobile jackforesightmobile deleted the feature/get-identity-flags branch June 20, 2024 10:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants