diff --git a/heromodels/src/db/postgres.rs b/heromodels/src/db/postgres.rs index f1cfe2c..145656d 100644 --- a/heromodels/src/db/postgres.rs +++ b/heromodels/src/db/postgres.rs @@ -208,9 +208,6 @@ where fn set(&self, value: &M) -> Result<(u32, M), super::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