Skip to content

Commit c1e9f7f

Browse files
fix(font): correct entity reference in query (#65)
Co-authored-by: theEvilReaper <theEvilReaper@users.noreply.github.com> Co-authored-by: Phillipp Glanz <6745190+TheMeinerLP@users.noreply.github.com>
1 parent 8ee2314 commit c1e9f7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/net/onelitefeather/vulpes/api/repository/font/FontStringRepository.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public interface FontStringRepository extends PageableRepository<FontStringEntit
2525
* @param id the unique identifier of the font
2626
* @return a list of characters associated with the font
2727
*/
28-
@Query(value = "SELECT f FROM font_lore f WHERE f.font.id = :id",
29-
countQuery = "SELECT count(f) FROM font_lore f WHERE f.font.id = :id"
28+
@Query(value = "SELECT f FROM font_string f WHERE f.font.id = :id",
29+
countQuery = "SELECT count(f) FROM font_string f WHERE f.font.id = :id"
3030
)
3131
Page<FontStringEntity> findCharsByFontId(UUID id, Pageable pageable);
3232
}

0 commit comments

Comments
 (0)