Skip to content

Commit

Permalink
(TO REMOVE) test it passes with fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dcchut committed Sep 20, 2022
1 parent c58187c commit cfbaf28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ impl SessionStore for DatabaseSessionStore {
.columns(vec![sessions::Column::Id, sessions::Column::Session])
.values(vec![
session.id().into(),
serde_json::to_string(&session)?.into(),
serde_json::to_value(&session)?.into(),
])?
.on_conflict(
OnConflict::new()
OnConflict::column(sessions::Column::Id)
.update_columns([sessions::Column::Session])
.to_owned(),
),
Expand Down

0 comments on commit cfbaf28

Please sign in to comment.