From 719cbbaf3a33e53bb10458fd89d810a359c4e6cd Mon Sep 17 00:00:00 2001 From: Neshura Date: Sat, 9 Sep 2023 02:21:49 +0200 Subject: [PATCH] Unify Handling of Setting to Null on DB --- src/v3/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/v3/mod.rs b/src/v3/mod.rs index d35861c..c1433c5 100644 --- a/src/v3/mod.rs +++ b/src/v3/mod.rs @@ -1037,8 +1037,9 @@ pub(crate) async fn edit_empire( } else { any_param_present = true; + let val: Option = None; db_empire_separated - .push(" discord_user = NONE"); + .push(" discord_user = ").push_bind_unseparated(val); } }