Skip to content

Commit

Permalink
Merge pull request #7 from Twitter-Clone-Group/gychu
Browse files Browse the repository at this point in the history
Gychu
  • Loading branch information
gychu1 authored Sep 5, 2022
2 parents dda3484 + be497db commit 7c788ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ public interface SqueakRepository extends JpaRepository<Squeak, Long> {
List<Squeak> findAllBySqueakerOrderById(Squeaker squeaker);

Squeak findSqueakById(Long id);
List<Squeak> findAllByOrderByIdDesc();
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class SqueakService {


public List<Squeak> findAllSqueaks() {
return squeakRepository.findAll();
return squeakRepository.findAllByOrderByIdDesc();
}

public Squeak findSqueakById(Long id) {
Expand Down

0 comments on commit 7c788ff

Please sign in to comment.