Skip to content
Snippets Groups Projects

Fix GetNotificationsReport

Merged Dariusz Rybicki requested to merge fix/get-notifications-report into development
6 files
+ 79
24
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -2,12 +2,12 @@ import Bindings
@@ -2,12 +2,12 @@ import Bindings
import XCTestDynamicOverlay
import XCTestDynamicOverlay
public struct GetNotificationsReport {
public struct GetNotificationsReport {
public var run: (String, MessageServiceList) throws -> NotificationReport
public var run: (String, MessageServiceList) throws -> [NotificationReport]
public func callAsFunction(
public func callAsFunction(
notificationCSV: String,
notificationCSV: String,
services: MessageServiceList
services: MessageServiceList
) throws -> NotificationReport {
) throws -> [NotificationReport] {
try run(notificationCSV, services)
try run(notificationCSV, services)
}
}
}
}
@@ -26,7 +26,7 @@ extension GetNotificationsReport {
@@ -26,7 +26,7 @@ extension GetNotificationsReport {
guard let result = result else {
guard let result = result else {
fatalError("BindingsGetNotificationsReport returned nil without providing error")
fatalError("BindingsGetNotificationsReport returned nil without providing error")
}
}
return try NotificationReport.decode(result)
return try [NotificationReport].decode(result)
}
}
}
}
Loading