* fix #1724 Co-authored-by: sabban <15465465+sabban@users.noreply.github.com>
This commit is contained in:
parent
64e0832b85
commit
21255b6391
1 changed files with 3 additions and 0 deletions
|
@ -470,6 +470,9 @@ cscli decisions delete --type captcha
|
||||||
log.Fatalf("Unable to delete decisions : %v", err)
|
log.Fatalf("Unable to delete decisions : %v", err)
|
||||||
}
|
}
|
||||||
} else {
|
} 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)
|
decisions, _, err = Client.Decisions.DeleteOne(context.Background(), delDecisionId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Unable to delete decision : %v", err)
|
log.Fatalf("Unable to delete decision : %v", err)
|
||||||
|
|
Loading…
Reference in a new issue