Skip to content
Snippets Groups Projects
Commit e326e610 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Update NewUdManagerFromBackup functor

Make phone and email facts optional
parent fdeb1a53
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!22Update Bindings
......@@ -2,13 +2,13 @@ import Bindings
import XCTestDynamicOverlay
public struct NewUdManagerFromBackup {
public var run: (Int, UdNetworkStatus, Fact, Fact) throws -> UserDiscovery
public var run: (Int, UdNetworkStatus, Fact?, Fact?) throws -> UserDiscovery
public func callAsFunction(
e2eId: Int,
follower: UdNetworkStatus,
email: Fact,
phone: Fact
email: Fact?,
phone: Fact?
) throws -> UserDiscovery {
try run(e2eId, follower, email, phone)
}
......@@ -22,8 +22,8 @@ extension NewUdManagerFromBackup {
let bindingsUD = BindingsNewUdManagerFromBackup(
e2eId,
follower.makeBindingsUdNetworkStatus(),
try email.encode(),
try phone.encode(),
try email?.encode(),
try phone?.encode(),
&error
)
if let error = error {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment