From cf7827c120976dc144471371f99729c0275ac290 Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Sun, 18 May 2025 19:33:12 +0200 Subject: [PATCH] Fix Log ordering --- server/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/task.go b/server/task.go index 9b1a54f..2bbdb51 100644 --- a/server/task.go +++ b/server/task.go @@ -237,7 +237,7 @@ func handleTask(w http.ResponseWriter, r *http.Request) { return } - rows, err := db.Query(r.Context(), "SELECT message FROM logs WHERE task_id = $1 ORDER BY task_ID ASC", t.ID) + rows, err := db.Query(r.Context(), "SELECT message FROM logs WHERE task_id = $1 ORDER BY id ASC", t.ID) if err != nil { slog.ErrorContext(r.Context(), "Query Task Logs", "err", err) http.Error(w, "Error Query Task Logs: "+err.Error(), http.StatusInternalServerError)