Skip to content

Commit 110e649

Browse files
fix(ItemRepository): improve used fields in some item queries (#42)
Co-authored-by: theEvilReaper <theEvilReaper@users.noreply.github.com>
1 parent a2ed380 commit 110e649

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/net/onelitefeather/vulpes/api/repository/ItemRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public interface ItemRepository extends PageableRepository<ItemEntity, UUID> {
3434
* @param id the unique identifier of the item
3535
* @return a list of lore strings associated with the item
3636
*/
37-
@Query("SELECT l FROM items i JOIN i.enchantments l WHERE i.id = :id")
37+
@Query("SELECT l FROM items i JOIN i.lore l WHERE i.id = :id")
3838
List<String> findLoreById(UUID id);
3939

4040
/**
@@ -43,7 +43,7 @@ public interface ItemRepository extends PageableRepository<ItemEntity, UUID> {
4343
* @param id the unique identifier of the item
4444
* @return a list of flags associated with the item
4545
*/
46-
@Query("SELECT f FROM items i JOIN i.enchantments f WHERE i.id = :id")
46+
@Query("SELECT f FROM items i JOIN i.flags f WHERE i.id = :id")
4747
List<String> findFlagsById(UUID id);
4848

4949

0 commit comments

Comments
 (0)