diff --git a/src/handlers.rs b/src/handlers.rs index 449e322..bd5ce71 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -251,7 +251,7 @@ pub async fn search_file( .map_err(map_postgres_err)? .into_iter() .map(|row| File { - id: row.get("id"), + id: row.get::<&str, i32>("id") as i64, id_str: row.get::<&str, i32>("id").to_string(), url: row.get("url"), filename: row.get("filename"),