Don't manually encode jsonb values
Signed-off-by: Lee Smet <lee.smet@hotmail.com>
This commit is contained in:
parent
3d66a82967
commit
8544e3ba3f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user