diff --git a/backend/handlers/bookings/manage.go b/backend/handlers/bookings/manage.go index 80883e1..e364d15 100644 --- a/backend/handlers/bookings/manage.go +++ b/backend/handlers/bookings/manage.go @@ -1729,7 +1729,7 @@ func AdminApproveEditRequestHandler(w http.ResponseWriter, r *http.Request) { // Check for applied discounts (admin warning only — discounts remain locked in) var discountCount int - if err := db.Conn.QueryRow(r.Context(), `SELECT COUNT(*) FROM booking_discounts WHERE booking_id = $1`, bookingID).Scan(&discountCount); err != nil { + if err := tx.QueryRow(r.Context(), `SELECT COUNT(*) FROM booking_discounts WHERE booking_id = $1`, bookingID).Scan(&discountCount); err != nil { log.Printf("ADMIN APPROVE EDIT: Failed to check discounts: %v", err) } if discountCount > 0 {