src/api2/node/tasks.rs: new filter "store" to filter tasks for one store
This commit is contained in:
@ -1980,7 +1980,13 @@ fn task_list(param: Value) -> Result<Value, Error> {
|
||||
|
||||
let limit = param["limit"].as_u64().unwrap_or(50) as usize;
|
||||
|
||||
let args = json!({ "running": true, "start": 0, "limit": limit, "userfilter": repo.user()});
|
||||
let args = json!({
|
||||
"running": true,
|
||||
"start": 0,
|
||||
"limit": limit,
|
||||
"userfilter": repo.user(),
|
||||
"store": repo.store(),
|
||||
});
|
||||
let result = client.get("api2/json/nodes/localhost/tasks", Some(args)).await?;
|
||||
|
||||
let data = &result["data"];
|
||||
|
Reference in New Issue
Block a user