mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-26 00:01:37 +00:00
improve args bind
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user