Skip to content

Commit

Permalink
billing repair confirmation (#6127)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjain1 committed Nov 22, 2024
1 parent a110a66 commit 7fb90a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cli/cmd/sudo/billing/repair.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ func RepairCmd(ch *cmdutil.Helper) *cobra.Command {
return err
}

ok, err := cmdutil.ConfirmPrompt("This will put all orgs not having billing customer id on trial. Are you sure ?", "", false)
if err != nil {
return err
}
if !ok {
return nil
}

_, err = client.SudoTriggerBillingRepair(cmd.Context(), &adminv1.SudoTriggerBillingRepairRequest{})
if err != nil {
return err
Expand Down

1 comment on commit 7fb90a7

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://ui.rilldata.com as production
🚀 Deployed on https://67400e6ba84ae7ffb896f9e4--rill-ui.netlify.app

Please sign in to comment.