Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.

Commit 422cbac

Browse files
authored
Update BlogPostSmallRepository.java
1 parent fd48353 commit 422cbac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin-panel/src/main/java/net/cryptic_game/backend/admin/repository/website/BlogPostSmallRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
@Repository
1212
public interface BlogPostSmallRepository extends JpaRepository<BlogPostSmallModel, IdModel> {
1313

14-
@Query("select object(bp) from BlogPostSmallModel bp where bp.id.language = ?1 order by bp.created")
14+
@Query("select object(bp) from BlogPostSmallModel bp where bp.id.language = ?1 order by bp.created desc")
1515
List<BlogPostSmallModel> findAll(String language);
1616
}

0 commit comments

Comments
 (0)