Skip to content

Commit de3ccdc

Browse files
committed
Bump up spring boot version to 2.2.1
1 parent 45247dd commit de3ccdc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

polling-app-server/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<parent>
1515
<groupId>org.springframework.boot</groupId>
1616
<artifactId>spring-boot-starter-parent</artifactId>
17-
<version>2.1.6.RELEASE</version>
17+
<version>2.2.1.RELEASE</version>
1818
<relativePath/> <!-- lookup parent from repository -->
1919
</parent>
2020

polling-app-server/src/main/java/com/example/polls/service/PollService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public PagedResponse<PollResponse> getPollsVotedBy(String username, UserPrincipa
124124
// Retrieve all poll details from the voted pollIds.
125125
List<Long> pollIds = userVotedPollIds.getContent();
126126

127-
Sort sort = new Sort(Sort.Direction.DESC, "createdAt");
127+
Sort sort = Sort.by(Sort.Direction.DESC, "createdAt");
128128
List<Poll> polls = pollRepository.findByIdIn(pollIds, sort);
129129

130130
// Map Polls to PollResponses containing vote counts and poll creator details

0 commit comments

Comments
 (0)