Skip to content
Snippets Groups Projects
Commit ee350980 authored by Florian Azizian's avatar Florian Azizian
Browse files

FEAT #15049 TIME 0:10 improve check producerServiceName

parent 88abc535
No related branches found
No related tags found
No related merge requests found
......@@ -449,7 +449,13 @@ class SedaController
return ['errors' => 'Error returned by the route /organization/organization/Search : ' . $curlResponse['response']['message']];
}
return ['producerServiceInfo' => $curlResponse['response'][0]];
foreach ($curlResponse['response'] as $organization) {
if ($organization['registrationNumber'] == $args['producerServiceName']) {
return ['producerServiceInfo' => $organization];
}
}
return ['producerServiceInfo' => null];
}
public function getRetentionRules(Request $request, Response $response)
......
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