From 090e4a43450fbe079077fbd6529652d37e894d5c Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 23 Dec 2024 09:44:02 +0000 Subject: [PATCH] refactor: trello client: specify query parameters --- src/trello/client.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/trello/client.rs b/src/trello/client.rs index 5aebd8a..34a4984 100644 --- a/src/trello/client.rs +++ b/src/trello/client.rs @@ -144,8 +144,8 @@ impl<'ctx> TrelloClient<'ctx> { // https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-get pub(crate) async fn card(&self, card_id: &TrelloCardId) -> APIResult { - self.request(f!("/cards/{card_id}?attachments=true"), |net, url| { - net.get(url) + self.request(f!("/cards/{card_id}"), |net, url| { + net.get(url).query("attachments", "true") }) .await }