refactor: trello client: specify query parameters
This commit is contained in:
parent
131850b8dc
commit
090e4a4345
1 changed files with 2 additions and 2 deletions
|
@ -144,8 +144,8 @@ impl<'ctx> TrelloClient<'ctx> {
|
||||||
|
|
||||||
// https://developer.atlassian.com/cloud/trello/rest/api-group-cards/#api-cards-id-get
|
// 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> {
|
pub(crate) async fn card(&self, card_id: &TrelloCardId) -> APIResult<TrelloLongCard> {
|
||||||
self.request(f!("/cards/{card_id}?attachments=true"), |net, url| {
|
self.request(f!("/cards/{card_id}"), |net, url| {
|
||||||
net.get(url)
|
net.get(url).query("attachments", "true")
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue