Skip to content

Commit

Permalink
chore: Change URI request to 'date' (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyojeongchoi committed Sep 20, 2023
1 parent a7a549a commit f5e2c3b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void naverNewsApi () {
.queryParam("query","주식")
.queryParam("display",10)
.queryParam("start",1)
.queryParam("sort","sim")
.queryParam("sort","date") //issue #2
.encode()
.build()
.toUri();
Expand All @@ -61,7 +61,7 @@ public void naverNewsApi () {
List<NaverNewsItem> newsItem = resultDTO.getItems();
List<NaverNewsItem> saveItem = new ArrayList<>();

for (NaverNewsItem news : newsItem){
for (NaverNewsItem news : newsItem){

NaverNewsItem findNews = NaverNewsRepo.findByTitle((news.getTitle()));

Expand Down

0 comments on commit f5e2c3b

Please sign in to comment.