Skip to content

Commit f03b111

Browse files
Stop loading embargo entities.
1 parent 0b9fa6c commit f03b111

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/reindex_embargoes/src/Drush/Commands/ReindexEmbargoesCommands.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,10 @@ public function populateQueue(): void {
6060

6161
$this->output()->writeln(dt("Found @count Embargoes with future expiration dates. Processing...", ['@count' => count($embargo_ids)]));
6262

63-
$embargoes = $embargo_storage->loadMultiple($embargo_ids);
6463
$queued_count = 0;
6564

66-
foreach ($embargoes as $embargo) {
67-
$item = ['embargo_id' => $embargo->id()];
65+
foreach ($embargo_ids as $embargo) {
66+
$item = ['embargo_id' => $embargo];
6867
$queue->createItem($item);
6968
$queued_count++;
7069
}

0 commit comments

Comments
 (0)