Skip to content

Commit

Permalink
optimize: 调整剧集附件查询端点逻辑 (#728)
Browse files Browse the repository at this point in the history
  • Loading branch information
chivehao authored Nov 10, 2024
1 parent 538b721 commit 0eb351c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

更新日志文档,版本顺序从新到旧,最新版本在最前(上)面。

# 0.20.1

## 优化

- 调整剧集附件查询端点逻辑

# 0.20.0

## 优化
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.20.0
version=0.20.1
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ private Mono<ServerResponse> getAllBySubjectId(ServerRequest request) {
private Mono<ServerResponse> getAttachmentRefsById(ServerRequest request) {
String id = request.pathVariable("id");
Long episodeId = Long.valueOf(id);
return ServerResponse.ok()
.body(episodeService.findResourcesById(episodeId), EpisodeResource.class);

return episodeService.findResourcesById(episodeId)
.collectList()
.flatMap(episodeResources -> ServerResponse.ok().bodyValue(episodeResources));
}

}

0 comments on commit 0eb351c

Please sign in to comment.