changeset 2772:0f467af6bf5c

Fixed "previous" response in importqueue listing.
author Sascha Wilde <wilde@intevation.de>
date Fri, 22 Mar 2019 11:46:57 +0100
parents ab1a22052437
children eb1b7479c5e3
files pkg/controllers/importqueue.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/importqueue.go	Fri Mar 22 11:25:09 2019 +0100
+++ b/pkg/controllers/importqueue.go	Fri Mar 22 11:46:57 2019 +0100
@@ -244,7 +244,7 @@
 	if !counting {
 		l.stmt.WriteString(" ORDER BY enqueued DESC ")
 		a.stmt.WriteString(" ORDER BY enqueued LIMIT 1")
-		b.stmt.WriteString(" ORDER BY enqueued LIMIT 1")
+		b.stmt.WriteString(" ORDER BY enqueued DESC LIMIT 1")
 	}
 
 	if noBefore {