From b74bdad322bcef6971b84dd213ec9b46f78b32ea Mon Sep 17 00:00:00 2001 From: Alex Gryczewski Date: Tue, 12 Sep 2023 11:15:21 -0400 Subject: [PATCH] Standardize with identification variables --- .../fashionscapeapi/repository/GalleryRepository.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }