Unify Handling of Setting to Null on DB
This commit is contained in:
parent
97bae3be1a
commit
719cbbaf3a
1 changed files with 2 additions and 1 deletions
|
@ -1037,8 +1037,9 @@ pub(crate) async fn edit_empire(
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
any_param_present = true;
|
any_param_present = true;
|
||||||
|
let val: Option<String> = None;
|
||||||
db_empire_separated
|
db_empire_separated
|
||||||
.push(" discord_user = NONE");
|
.push(" discord_user = ").push_bind_unseparated(val);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue