fix(migration): trello: only fetch attachments when the card actually has attachments
This commit is contained in:
parent
ee3d20e1d2
commit
994aaeb920
@ -173,10 +173,12 @@ func fillCardData(client *trello.Client, board *trello.Board) (err error) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if card.Badges.Attachments > 0 {
|
||||||
card.Attachments, err = card.GetAttachments(allArg)
|
card.Attachments, err = card.GetAttachments(allArg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if len(card.IDCheckLists) > 0 {
|
if len(card.IDCheckLists) > 0 {
|
||||||
for _, checkListID := range card.IDCheckLists {
|
for _, checkListID := range card.IDCheckLists {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user