From ad90b3eb4aa969840282bd386350f9f4d7cbbafa Mon Sep 17 00:00:00 2001
From: "florian.azizian" <florian.azizian@maarch.org>
Date: Tue, 10 Nov 2020 09:34:59 +0100
Subject: [PATCH] FEAT #15049 TIME 0:10 retrieve rejected archives

---
 bin/exportSeda/batch_tools.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/exportSeda/batch_tools.php b/bin/exportSeda/batch_tools.php
index 2be12866dd5..0d3737b7d71 100644
--- a/bin/exportSeda/batch_tools.php
+++ b/bin/exportSeda/batch_tools.php
@@ -160,7 +160,7 @@ function Bt_getReply($args = [])
         return ['errors' => 'Error returned by the route /organization/organization/Search : ' . $curlResponse['response']['message']];
     }
 
-    if ($curlResponse['response']['status'] != "processed") {
+    if (!in_array($curlResponse['response']['status'], ['rejected', 'processed'])) {
         return [];
     }
 
-- 
GitLab