fix(#2377): org_list_hooks returns Vec<Hook>, use .send() not .all()
org_list_hooks response type is Vec<Hook> (no pagination headers), so .all() (which is impl'd for (H, Vec<T>) paginated responses) does not compile. Switch to .send() — the non-paginated call path. repo_list_hooks (used in workers/knowledge.rs) returns (H, Vec<T>) and correctly uses .all(); the org variant is different.
This commit is contained in:
parent
c4d2391455
commit
5e1863d231
1 changed files with 1 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ pub async fn ensure_config_pr_webhook(core_token: &str, dashboard_port: u16) ->
|
|||
|
||||
// List existing org hooks — skip creation if ours is already there.
|
||||
// Best-effort: a listing failure falls through to the create attempt.
|
||||
let listed = tokio::time::timeout(HTTP_TIMEOUT, client.org_list_hooks(CONFIG_ORG).all())
|
||||
let listed = tokio::time::timeout(HTTP_TIMEOUT, client.org_list_hooks(CONFIG_ORG).send())
|
||||
.await
|
||||
.map_err(anyhow::Error::from)
|
||||
.and_then(|r| r.map_err(anyhow::Error::from));
|
||||
|
|
|
|||
Loading…
Reference in a new issue