diff --git a/src/main/java/io/salmonllama/fashionscapeapi/repository/GalleryRepository.java b/src/main/java/io/salmonllama/fashionscapeapi/repository/GalleryRepository.java index b8b09fd..326f354 100644 --- a/src/main/java/io/salmonllama/fashionscapeapi/repository/GalleryRepository.java +++ b/src/main/java/io/salmonllama/fashionscapeapi/repository/GalleryRepository.java @@ -9,9 +9,9 @@ import java.util.Optional; public interface GalleryRepository extends JpaRepository { - @Query(value = "SELECT * FROM gallery g WHERE g.server_id = ?1", nativeQuery = true) + @Query(value = "SELECT g FROM gallery g WHERE g.server_id = ?1", nativeQuery = true) public List findAllByServer(String serverId); - @Query(value = "SELECT * FROM gallery g WHERE g.server_id = ?1 and g.channel_id = ?2", nativeQuery = true) + @Query(value = "SELECT g FROM gallery g WHERE g.server_id = ?1 and g.channel_id = ?2", nativeQuery = true) public Optional findByServerAndChannel(String serverId, String channelId); }