mirror of
https://github.com/Athou/commafeed.git
synced 2026-11-20 10:43:37 +00:00
feed needs to be known to be deleted
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user