This commit is contained in:
parent
f35a51ea28
commit
cf7827c120
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ func handleTask(w http.ResponseWriter, r *http.Request) {
|
||||||
return
|
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 {
|
if err != nil {
|
||||||
slog.ErrorContext(r.Context(), "Query Task Logs", "err", err)
|
slog.ErrorContext(r.Context(), "Query Task Logs", "err", err)
|
||||||
http.Error(w, "Error Query Task Logs: "+err.Error(), http.StatusInternalServerError)
|
http.Error(w, "Error Query Task Logs: "+err.Error(), http.StatusInternalServerError)
|
||||||
|
|
Loading…
Add table
Reference in a new issue