This commit is contained in:
Peter Rounce 2023-03-01 23:28:14 +00:00
parent b1fab9f1c1
commit 368d0b9f50

View file

@ -27,17 +27,6 @@ func Wipeboltcard(w http.ResponseWriter, r *http.Request) {
return return
} }
// check if card_name exists
card_count, err := db.Get_card_name_count(card_name)
if card_count == 0 {
msg := "wipeboltcard: the card name does not exist in the database"
log.Warn(msg)
resp_err.Write_message(w, msg)
return
}
// set the card as wiped and disabled, get the keys // set the card as wiped and disabled, get the keys
card_wipe_info_values, err := db.Wipe_card(card_name) card_wipe_info_values, err := db.Wipe_card(card_name)