diff --git a/src/v3/mod.rs b/src/v3/mod.rs index 53122c3..d35861c 100644 --- a/src/v3/mod.rs +++ b/src/v3/mod.rs @@ -1035,6 +1035,11 @@ pub(crate) async fn edit_empire( .push(" discord_user = ") .push_bind_unseparated(new_discord_user); } + else { + any_param_present = true; + db_empire_separated + .push(" discord_user = NONE"); + } } let db_empire: db::schemas::Empire;