Tweak relay status

This commit is contained in:
Jon Staab
2026-04-01 16:05:15 -07:00
parent 3e131b6a1b
commit 7e0bd14ef3
5 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -193,7 +193,7 @@ impl Api {
relay.schema = format!("{}_{}", relay.subdomain.replace('-', "_"), relay.id);
}
if relay.status.is_empty() {
relay.status = "new".to_string();
relay.status = "active".to_string();
}
relay.policy_public_join = parse_bool_default(relay.policy_public_join, 0);
relay.policy_strip_signatures = parse_bool_default(relay.policy_strip_signatures, 0);
@@ -472,7 +472,7 @@ async fn create_relay(
schema: String::new(),
subdomain: payload.subdomain,
plan: payload.plan,
status: "new".to_string(),
status: "active".to_string(),
sync_error: String::new(),
info_name: payload.info_name.unwrap_or_default(),
info_icon: payload.info_icon.unwrap_or_default(),