diff --git a/app/Services/ThiladhunService.php b/app/Services/ThiladhunService.php index 32f3d88..2db5541 100644 --- a/app/Services/ThiladhunService.php +++ b/app/Services/ThiladhunService.php @@ -23,7 +23,7 @@ class ThiladhunService extends Client $articlesitems = []; //Looping through the articles and scraping and while scraping it creates a new instance of the scraper. foreach ($articles as $article) { - $articlesitems[] = (new ThiladhunScraper)->extract($article["link"], $articles["pubDate"]); + $articlesitems[] = (new ThiladhunScraper)->extract($article["link"], $article["pubDate"]); } return $articlesitems;