Fix error in getting rows.

This commit is contained in:
Syfaro 2020-01-24 02:52:37 -06:00
parent be5e1a9b97
commit f1e13a70e1

View File

@ -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"),