decided to do ctrl-f for " order " and found this piece. Don't know what bug this will fix but probably best to update to reflect additional sorting options. Sorry for ternary operator abuse

This commit is contained in:
tyler
2016-09-05 04:56:30 -04:00
parent b40349805f
commit 039ff4ee41

View File

@@ -61,7 +61,18 @@ public class NextUnreadServlet extends HttpServlet {
return;
}
final ReadingOrder order = StringUtils.equals(orderParam, "asc") ? ReadingOrder.asc : ReadingOrder.desc;
final ReadingOrder order = (StringUtils.equals(orderParam, "asc") ?
ReadingOrder.asc :
(
StringUtils.equals(orderParam, "desc") ?
ReadingOrder.desc :
(
StringUtils.equals(orderParam, "abc") ?
ReadingOrder.abc :
(ReadingOrder.zyx)
)
)
);
FeedEntryStatus status = UnitOfWork.call(sessionFactory, () -> {
FeedEntryStatus s = null;