Skip to content

Commit

Permalink
Fix wrong type due to updated lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mguegan committed May 16, 2024
1 parent e08c9d1 commit ed3e5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn set(id: &String, note: &Note) -> Result<(), &'static str> {
match note.expiration {
Some(e) => {
let seconds = e - now();
conn.expire(id, seconds as usize)
conn.expire(id, seconds as i64)
.map_err(|_| "Unable to set expiration on notion")?
}
None => {}
Expand Down

0 comments on commit ed3e5f4

Please sign in to comment.