From 86e5199c9382527ced469ef99cbcc40a3c078199 Mon Sep 17 00:00:00 2001
From: Dariusz Rybicki <dariusz@elixxir.io>
Date: Sat, 12 Nov 2022 11:33:43 +0100
Subject: [PATCH] Fix GetNotificationsReport so it returns array

---
 Sources/XXClient/Functions/GetNotificationsReport.swift | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Sources/XXClient/Functions/GetNotificationsReport.swift b/Sources/XXClient/Functions/GetNotificationsReport.swift
index 81d54a59..9b123572 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)
   }
 }
 
-- 
GitLab