Verified Commit 4bc2a229 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

#7384 - Process restitution to batch

parent 48cbe65c
......@@ -333,11 +333,8 @@ class ArchiveRestitutionRequest extends abstractMessage
$messages = $this->sdoFactory->find("medona/message", "status='accepted' AND type='ArchiveRestitutionRequest' AND active=true");
foreach ($messages as $message) {
$this->changeStatus($message->messageId, "processing");
$this->loadData($message);
try {
$results[(string) $message->messageId] = $this->process($message);
$results[(string) $message->messageId] = $this->process((string)$message->messageId);
} catch (\Exception $e) {
$results[(string) $message->messageId] = $e;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment