From e6a90631ff0e7d9b530b253ff2d6046905117c1e Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Thu, 13 Nov 2025 14:57:14 +0000 Subject: [PATCH] Fix search for latest sync data We were pulling the oldest sync data --- html.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.go b/html.go index 8a4202ae..e30fc190 100644 --- a/html.go +++ b/html.go @@ -132,7 +132,7 @@ func htmlDashboard(ctx context.Context, w http.ResponseWriter, user *models.User return } var lastSync *time.Time - sync, err := org.FieldseekerSyncs(sm.OrderBy("created")).One(ctx, PGInstance.BobDB) + sync, err := org.FieldseekerSyncs(sm.OrderBy("created").Desc()).One(ctx, PGInstance.BobDB) if err != nil { if err.Error() != "sql: no rows in result set" { respondError(w, "Failed to get syncs", err, http.StatusInternalServerError)