Skip to content

Commit

Permalink
fetch into stream
Browse files Browse the repository at this point in the history
  • Loading branch information
rfresh2 committed Oct 20, 2024
1 parent 93524e9 commit c4d184c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/vc/controller/PlaytimeController.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ public ResponseEntity<PlaytimeResponse> playtime(
public ResponseEntity<PlaytimeMonthResponse> playtimeTopMonth() {
var players = dsl
.selectFrom(PLAYTIME_MONTH)
.fetchStream()
.fetch()
.stream()
.map(playtimeAllMonthRecord -> new PlayerPlaytimeData(
playtimeAllMonthRecord.get(PLAYTIME_MONTH.PLAYER_UUID),
playtimeAllMonthRecord.get(PLAYTIME_MONTH.PLAYER_NAME),
Expand Down

0 comments on commit c4d184c

Please sign in to comment.