Make Discord Usernames Nullable

This commit is contained in:
Neshura 2023-09-09 02:11:43 +02:00
parent 5a557d262b
commit 97bae3be1a
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -1035,6 +1035,11 @@ pub(crate) async fn edit_empire(
.push(" discord_user = ") .push(" discord_user = ")
.push_bind_unseparated(new_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; let db_empire: db::schemas::Empire;