mirror of
https://github.com/Syfaro/fuzzysearch.git
synced 2024-12-26 07:15:34 +00:00
Fix error in getting rows.
This commit is contained in:
parent
be5e1a9b97
commit
f1e13a70e1
@ -251,7 +251,7 @@ pub async fn search_file(
|
|||||||
.map_err(map_postgres_err)?
|
.map_err(map_postgres_err)?
|
||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|row| File {
|
.map(|row| File {
|
||||||
id: row.get("id"),
|
id: row.get::<&str, i32>("id") as i64,
|
||||||
id_str: row.get::<&str, i32>("id").to_string(),
|
id_str: row.get::<&str, i32>("id").to_string(),
|
||||||
url: row.get("url"),
|
url: row.get("url"),
|
||||||
filename: row.get("filename"),
|
filename: row.get("filename"),
|
||||||
|
Loading…
Reference in New Issue
Block a user