Skip to content

Commit

Permalink
fix (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
redouane59 authored May 1, 2021
1 parent 4a51e3e commit 983bb67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ private TweetSearchResponse searchForTweets(String query, LocalDateTime fromDate
parameters.put(NEXT_TOKEN, nextToken);
}
parameters.put("tweet.fields", URLHelper.ALL_TWEET_FIELDS);
Optional<TweetSearchResponseV2> tweetSearchV2DTO = this.requestHelperV1.getRequestWithParameters(searchUrl,
Optional<TweetSearchResponseV2> tweetSearchV2DTO = this.requestHelperV2.getRequestWithParameters(searchUrl,
parameters, TweetSearchResponseV2.class);
if (!tweetSearchV2DTO.isPresent() || tweetSearchV2DTO.get().getData() == null) {
return new TweetSearchResponse(new ArrayList<>(), null);
Expand Down

0 comments on commit 983bb67

Please sign in to comment.