Make Discord Usernames Nullable
This commit is contained in:
parent
5a557d262b
commit
97bae3be1a
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue