refactor: trello client: specify query parameters
Some checks failed
Test / build (map[name:nightly]) (push) Successful in 3m52s
Test / build (map[name:stable]) (push) Successful in 3m20s
Release Please / Release-plz (push) Failing after 27s

This commit is contained in:
Paul Campbell 2024-12-23 09:44:02 +00:00
parent 131850b8dc
commit 090e4a4345

View file

@ -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<TrelloLongCard> {
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
}