improve args bind

This commit is contained in:
Ruben Fiszel
2025-03-12 17:38:35 +01:00
parent 906bfef1bd
commit 6915b334b2
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -134,7 +134,7 @@ async fn get_input_history(
let mut tx = user_db.begin(&authed).await?;
let args_query = if let Some(args) = &g.args {
format!("and args @> '{}'", args)
sql_builder::bind::Bind::bind(&"args @> ?", &args.replace("'", "''"))
} else {
"".to_string()
};
@@ -181,6 +181,8 @@
if (date < min) {
min = date
}
} else {
console.log(job)
}
}
return min