This commit is contained in:
Peter Rounce 2023-02-28 17:45:00 +00:00
parent 62c0db37d5
commit c5f70a2866
3 changed files with 9 additions and 19 deletions

View file

@ -83,21 +83,6 @@ func Createboltcard(w http.ResponseWriter, r *http.Request) {
return
}
// check if card_name already exists
card_count, err := db.Get_card_name_count(card_name)
if err != nil {
log.Warn(err.Error())
return
}
if card_count > 0 {
msg := "createboltcard: the card name already exists in the database"
log.Warn(msg)
resp_err.Write_message(w, msg)
return
}
// log the request
log.WithFields(log.Fields{