From f1e13a70e161df9abbcf3962d12321396915f146 Mon Sep 17 00:00:00 2001 From: Syfaro Date: Fri, 24 Jan 2020 02:52:37 -0600 Subject: [PATCH] Fix error in getting rows. --- src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"),