Don't manually encode jsonb values

Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
Lee Smet 2025-07-31 10:59:14 +02:00
parent 3d66a82967
commit 8544e3ba3f
Signed by untrusted user who does not match committer: lee
GPG Key ID: 72CBFB5FDA7FE025

View File

@ -208,9 +208,6 @@ where
fn set(&self, value: &M) -> Result<(u32, M), super::Error<Self::Error>> {
let mut con = self.pool.get().map_err(Error::from)?;
// let ser_val = serde_json::to_string(&value).map_err(Error::from)?;
let ser_val = jsonb::to_owned_jsonb(&value).map_err(Error::from)?;
if value.get_id() == 0 {
// NOTE: We perform a query here since we want the returned value which has the updated ID
let Some(row) = con