forked from Archives/Athou_commafeed
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user