chore(backend): remove LocalDateTime usage, replaced with Instant

This commit is contained in:
2026-06-25 20:21:48 +01:00
parent 755a18fc3a
commit 42294703ae
13 changed files with 31 additions and 27 deletions

View File

@@ -5,7 +5,7 @@ import com.ddf.vodsystem.entities.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.time.LocalDateTime;
import java.time.Instant;
import java.util.List;
import java.util.Optional;
@@ -13,5 +13,5 @@ import java.util.Optional;
public interface StreamRepository extends JpaRepository<Stream, Long> {
Optional<Stream> findByUserAndEndDateIsNull(User user);
List<Stream> findByUser(User user);
List<Stream> findByEndDateIsNullAndLastSeenBefore(LocalDateTime cutoff);
List<Stream> findByEndDateIsNullAndLastSeenBefore(Instant cutoff);
}