Working through issue where prizes are incorrect and need updating.

This commit is contained in:
2025-03-29 15:42:14 +00:00
parent c0143df8c0
commit f8dab97a54
7 changed files with 136 additions and 17 deletions

View File

@@ -43,6 +43,14 @@ func AdminTriggersHandler(db *sql.DB) http.HandlerFunc {
}
flashMsg = "✅ Missing prizes updated."
case "refresh_prizes":
err := services.RefreshTicketPrizes(db)
if err != nil {
http.Error(w, "Refresh failed: "+err.Error(), http.StatusInternalServerError)
return
}
flashMsg = "✅ Ticket prizes refreshed."
case "run_all":
stats, err := services.RunTicketMatching(db, "manual")
if err != nil {