added command "list" (so far without -status)

This commit is contained in:
odweta
2026-08-16 18:02:16 +02:00
parent c29d8f0d99
commit 45e0353a6d
4 changed files with 37 additions and 5 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ func deleteQuote(w http.ResponseWriter, r *http.Request) {
// GET /tickets
func getTickets(w http.ResponseWriter, r *http.Request) {
rows, err := db.Query(context.Background(), "SELECT id, title, description, status, created_at, updated_at FROM tickets;")
rows, err := db.Query(context.Background(), "SELECT id, title, description, status, created_at, updated_at FROM tickets ORDER BY id;")
if err != nil {
http.Error(w, err.Error(), 500)
return