Skip to content

Commit 5ee5f33

Browse files
authored
33902 Update dina-base to 0.125 (#390)
Updated dina-base and use the proper method in baseDAO
1 parent 82ab6cc commit 5ee5f33

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
<asciidoctor-maven-plugin.version>2.1.0</asciidoctor-maven-plugin.version>
4747
<asciidoctorj.diagram.version>2.0.2</asciidoctorj.diagram.version>
48-
<dina-base-api.version>0.124</dina-base-api.version>
48+
<dina-base-api.version>0.125</dina-base-api.version>
4949

5050
<postgresql.version>42.4.4</postgresql.version>
5151

src/main/java/ca/gc/aafc/objectstore/api/service/ObjectOrphanRemovalService.java

+2-6
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,8 @@ private List<ObjectUpload> findOrphans() {
6767
"LEFT JOIN " + Derivative.class.getCanonicalName() + " d ON ou.fileIdentifier = d.fileIdentifier " +
6868
"WHERE m.fileIdentifier IS NULL AND d.fileIdentifier IS NULL";
6969

70-
return baseDAO.resultListFromQuery(
71-
ObjectUpload.class,
72-
sql,
73-
0,
74-
MAX_ORPHAN_QUERY_LIMIT,
75-
null);
70+
return baseDAO.findAllByQuery(ObjectUpload.class, sql, null,
71+
MAX_ORPHAN_QUERY_LIMIT, 0);
7672
}
7773

7874
private boolean isExpired(ObjectUpload upload) {

0 commit comments

Comments
 (0)