Fix Log ordering
All checks were successful
/ release (push) Successful in 55s

This commit is contained in:
Samuel Lorch 2025-05-18 19:33:12 +02:00
parent f35a51ea28
commit cf7827c120

View file

@ -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)