1
0

fix(migration): trello: only fetch attachments when the card actually has attachments

This commit is contained in:
kolaente 2024-04-09 13:25:03 +02:00
parent ee3d20e1d2
commit 994aaeb920
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

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