Skip to content

Commit

Permalink
Merge branch 'master' into improvedResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
SundarakrishnanN authored Jun 7, 2024
2 parents c8e6a54 + 4b85442 commit a1536dc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

public interface RequestFormRepository extends JpaRepository<RequestForm,Long> {
List<RequestForm> findAllByRequesterOrderByCreatedAtDesc(User user);

List<RequestForm> findAllByOrderByCreatedAtDesc();

@Query("SELECT rf FROM RequestForm rf WHERE rf.requester.society.societyId = :societyId ORDER BY rf.createdAt DESC")
List<RequestForm> findByRequesterSociety(@Param("societyId") Integer societyId);
}

0 comments on commit a1536dc

Please sign in to comment.