feed needs to be known to be deleted

This commit is contained in:
Athou
2024-08-16 07:31:22 +02:00
parent 214dfe580a
commit ab334a7bc6
2 changed files with 6 additions and 1 deletions

View File

@@ -24,6 +24,10 @@ public class FeedDAO extends GenericDAO<Feed> {
super(entityManager, Feed.class);
}
public List<Feed> findByIds(List<Long> id) {
return query().selectFrom(FEED).where(FEED.id.in(id)).fetch();
}
public List<Feed> findNextUpdatable(int count, Instant lastLoginThreshold) {
JPAQuery<Feed> query = query().selectFrom(FEED).where(FEED.disabledUntil.isNull().or(FEED.disabledUntil.lt(Instant.now())));
if (lastLoginThreshold != null) {