Skip to content

Commit

Permalink
fix: Fix mapping of entries ids in FeedFetcher
Browse files Browse the repository at this point in the history
Introduced by: bad8fb7
  • Loading branch information
marienfressinaud committed Feb 24, 2023
1 parent 8609c78 commit cbe374b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/services/FeedFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ public function fetch($collection)
$links_to_create[$link->id] = $link;

$link_ids_by_urls[$link->url] = $link->id;
$link_urls_by_entry_ids[$link->url] = $link->feed_entry_id;
$link_urls_by_entry_ids[$link->feed_entry_id] = [
'id' => $link->id,
'url' => $link->url,
];
$link_id = $link->id;

$links_to_collections_to_create[] = new models\LinkToCollection([
Expand Down

0 comments on commit cbe374b

Please sign in to comment.