diff --git a/Sources/XXClient/Functions/GetNotificationsReport.swift b/Sources/XXClient/Functions/GetNotificationsReport.swift index 81d54a59e298bc8a7f5a597736ca5f494e7f07c4..9b1235728902e37a28352fd56479429d53aceb57 100644 --- a/Sources/XXClient/Functions/GetNotificationsReport.swift +++ b/Sources/XXClient/Functions/GetNotificationsReport.swift @@ -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) } }