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
|
||||
}
|
||||
|
||||
if card.Badges.Attachments > 0 {
|
||||
card.Attachments, err = card.GetAttachments(allArg)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if len(card.IDCheckLists) > 0 {
|
||||
for _, checkListID := range card.IDCheckLists {
|
||||
|
Loading…
x
Reference in New Issue
Block a user