@@ -27,7 +27,7 @@ public interface TokenHistoryRepo extends JpaRepository<TokenHistory, Long>, Jpa
@Query("select t from TokenHistory t where t.toUserId = ?1 or t.fromUserId = ?1 order by t.createdAt desc")
List<TokenHistory> userHistory(Long userId);
- @Query("select t from TokenHistory t where t.toUserId in ?1")
+ @Query("select t from TokenHistory t where t.toUserId in ?1 and t.price is not null")
List<TokenHistory> userBuy(Collection<Long> userId);
@Transactional