Skip to content

Commit de152a0

Browse files
authored
Merge pull request #299 from SWM16-ASAP/develop
Release: v3.1.1
2 parents 0a8a0c9 + e069401 commit de152a0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ springBoot {
1010
}
1111

1212
group = 'com.linglevel'
13-
version = '3.1.0-SNAPSHOT'
13+
version = '3.1.1-SNAPSHOT'
1414

1515
java {
1616
toolchain {

src/main/java/com/linglevel/api/content/common/ContentCategory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public enum ContentCategory {
88
SCIENCE("Science"),
99
TECH("Technology"),
1010
BUSINESS("Business"),
11+
EDU("Education"),
1112
CULTURE("Culture");
1213

1314
private final String displayName;

src/main/java/com/linglevel/api/content/feed/service/FeedService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ private List<Feed> sortFeeds(List<Feed> feeds, GetFeedsRequest.SortOrder sortOrd
8080

8181
case LATEST:
8282
default:
83-
// 최신순: createdAt 내림차순
83+
// 최신순: publishedAt 내림차순
8484
return feeds.stream()
8585
.sorted((f1, f2) -> {
86-
if (f1.getCreatedAt() == null) return 1;
87-
if (f2.getCreatedAt() == null) return -1;
88-
return f2.getCreatedAt().compareTo(f1.getCreatedAt());
86+
if (f1.getPublishedAt() == null) return 1;
87+
if (f2.getPublishedAt() == null) return -1;
88+
return f2.getPublishedAt().compareTo(f1.getPublishedAt());
8989
})
9090
.collect(java.util.stream.Collectors.toList());
9191
}

0 commit comments

Comments
 (0)