* fix #1724

Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
This commit is contained in:
Manuel Sabban 2022-08-30 12:38:28 +02:00 committed by GitHub
parent 64e0832b85
commit 21255b6391
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -470,6 +470,9 @@ cscli decisions delete --type captcha
log.Fatalf("Unable to delete decisions : %v", err)
}
} else {
if _, err = strconv.Atoi(delDecisionId); err != nil {
log.Fatalf("id '%s' is not an integer: %v", delDecisionId, err)
}
decisions, _, err = Client.Decisions.DeleteOne(context.Background(), delDecisionId)
if err != nil {
log.Fatalf("Unable to delete decision : %v", err)