Add priority

This commit is contained in:
2017-02-01 09:41:08 -05:00
parent 0711ae0ac8
commit e3779a323c
19 changed files with 365 additions and 83 deletions
@@ -185,9 +185,8 @@ namespace LeafWeb.WebCms.Services.PiscalQueue
var pendingInput =
DataService
.GetLeafInputs(LeafInputStatusType.Pending)
.OrderBy(l => l.StatusHistory.Min(sh => sh.DateTime))
.FirstOrDefault();
.GetLeafInputsOrdered()
.FirstOrDefault(li => li.CurrentStatus == LeafInputStatusType.Pending);
if (pendingInput == null)
{