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

Fix GetNotificationsReport so it returns array

parent 450ca488
No related branches found
No related tags found
2 merge requests!142Fix GetNotificationsReport,!102Release 1.0.0
This commit is part of merge request !142. Comments created here will be created in the context of that merge request.
......@@ -2,12 +2,12 @@ import Bindings
import XCTestDynamicOverlay
public struct GetNotificationsReport {
public var run: (String, MessageServiceList) throws -> NotificationReport
public var run: (String, MessageServiceList) throws -> [NotificationReport]
public func callAsFunction(
notificationCSV: String,
services: MessageServiceList
) throws -> NotificationReport {
) throws -> [NotificationReport] {
try run(notificationCSV, services)
}
}
......@@ -26,7 +26,7 @@ extension GetNotificationsReport {
guard let result = result else {
fatalError("BindingsGetNotificationsReport returned nil without providing error")
}
return try NotificationReport.decode(result)
return try [NotificationReport].decode(result)
}
}
......
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