cache dao: fix findMostRecent() to sort by revision properly

This commit is contained in:
Adam
2017-11-10 11:28:39 -05:00
parent 8e6b90bc20
commit 7b66528694

View File

@@ -50,7 +50,7 @@ public class CacheDAO
public CacheEntry findMostRecent(Connection con)
{
return con.createQuery("select id from cache order by revision,date desc limit 1")
return con.createQuery("select id, revision, date from cache order by revision desc, date desc limit 1")
.executeAndFetchFirst(CacheEntry.class);
}