@@ -27,7 +27,6 @@ public interface UserDeviceRepository extends BasicJpaRepository<UserDevice, Str
* @param userId the id of user
* @return
*/
- @Query(value = "select u.* from UserDevice u where u.user_id != ?1", nativeQuery = true)
+ @Query(value = "select u from UserDevice u where u.userId = ?1")
List<UserDevice> findByUserId(String userId);
-
}