Unify Handling of Setting to Null on DB

This commit is contained in:
Neshura 2023-09-09 02:21:49 +02:00
parent 97bae3be1a
commit 719cbbaf3a
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -1037,8 +1037,9 @@ pub(crate) async fn edit_empire(
}
else {
any_param_present = true;
let val: Option<String> = None;
db_empire_separated
.push(" discord_user = NONE");
.push(" discord_user = ").push_bind_unseparated(val);
}
}