mirror of
https://github.com/eggjs/egg.git
synced 2024-12-04 07:14:30 +00:00
This commit fixed an asynchronous error in the NewsService list method. I added the 'async' keyword and used 'await' to fetch data in each iteration. This ensures that the NewsService class can fetch news data from the Hacker News API efficiently and without errors.