|
|
@ -54,8 +54,7 @@ public class JournalModel {
|
|
|
|
public static List<CollectionInfo> getCollections(EntityDataStore<Persistable> data, long service) {
|
|
|
|
public static List<CollectionInfo> getCollections(EntityDataStore<Persistable> data, long service) {
|
|
|
|
List<CollectionInfo> ret = new LinkedList<>();
|
|
|
|
List<CollectionInfo> ret = new LinkedList<>();
|
|
|
|
|
|
|
|
|
|
|
|
List<JournalEntity> journals = data.select(JournalEntity.class).where(JournalEntity.SERVICE.eq(service).and(JournalEntity.DELETED.eq(false))).get().toList();
|
|
|
|
for (JournalEntity journal : data.select(JournalEntity.class).where(JournalEntity.SERVICE.eq(service).and(JournalEntity.DELETED.eq(false))).get()) {
|
|
|
|
for (JournalEntity journal : journals) {
|
|
|
|
|
|
|
|
// FIXME: For some reason this isn't always being called, manually do it here.
|
|
|
|
// FIXME: For some reason this isn't always being called, manually do it here.
|
|
|
|
journal.afterLoad();
|
|
|
|
journal.afterLoad();
|
|
|
|
ret.add(journal.getInfo());
|
|
|
|
ret.add(journal.getInfo());
|
|
|
|