Skip to content

Commit

Permalink
refactor : feed get
Browse files Browse the repository at this point in the history
  • Loading branch information
NameIsUser06 committed Jan 7, 2024
1 parent 3d8bae1 commit 9cbe131
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public ResponseEntity<List<FeedListResponse>> getAllFeeds(@RequestParam Long fri
}

@GetMapping
public ResponseEntity<FeedResponse> getFeeds(@RequestParam Long feedId) {
public ResponseEntity<FeedResponse> getFeed(@RequestParam Long feedId) {
return getFeedService.execute(feedId);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public ResponseEntity<FeedResponse> execute(Long feedId) {
.name(feed.getFriend().getName())
.content(feed.getContent())
.tags(feed.getTags())
.url(serverProperties.getUrl() + "/file?fileId=" + feed.getFile().getId())
.url(serverProperties.getUrl() + "/file?fileId=" + feed.getFriend().getFile().getId())
.build()
);
}
Expand Down

0 comments on commit 9cbe131

Please sign in to comment.