forked from Cookies_Github_mirror/AquaDX
[chuni] fix user item being overwritten
[api] fix set diva news
This commit is contained in:
@@ -15,7 +15,7 @@ import java.util.Optional;
|
||||
@Repository
|
||||
public interface UserItemRepository extends JpaRepository<UserItem, Long> {
|
||||
|
||||
Optional<UserItem> findTopByUserAndItemIdOrderByIdDesc(UserData user, int itemId);
|
||||
Optional<UserItem> findTopByUserAndItemIdAndItemKindOrderByIdDesc(UserData user, int itemId, int itemKind);
|
||||
|
||||
Page<UserItem> findAllByUser_Card_ExtIdAndItemKind(long extId, int itemKind, Pageable pageable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user