Skip to content

Commit 76f0995

Browse files
committed
[tyler/fix-on-conflict]: rename
1 parent c146cfe commit 76f0995

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/cli/src/subcommands/publish.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ i.e. only lowercase ASCII letters and numbers, separated by dashes."),
102102
.after_help("Run `spacetime help publish` for more detailed information.")
103103
}
104104

105-
fn prompt_and_clear(
105+
fn confirm_and_clear(
106106
name_or_identity: &str,
107107
force: bool,
108108
mut builder: reqwest::RequestBuilder,
@@ -196,7 +196,7 @@ pub async fn exec(mut config: Config, args: &ArgMatches) -> Result<(), anyhow::E
196196
let mut builder = client.put(format!("{database_host}/v1/database/{domain}"));
197197

198198
if clear_database == ClearMode::Always {
199-
builder = prompt_and_clear(name_or_identity, force, builder)?;
199+
builder = confirm_and_clear(name_or_identity, force, builder)?;
200200
} else {
201201
builder = apply_pre_publish_if_needed(
202202
builder,
@@ -370,7 +370,7 @@ async fn apply_pre_publish_if_needed(
370370
println!("{}", manual.reason);
371371
println!("Proceeding with database clear due to --delete-data=on-conflict.");
372372

373-
builder = prompt_and_clear(name_or_identity, force, builder)?;
373+
builder = confirm_and_clear(name_or_identity, force, builder)?;
374374
}
375375
PrePublishResult::AutoMigrate(auto) => {
376376
println!("{}", auto.migrate_plan);

0 commit comments

Comments
 (0)