diff options
Diffstat (limited to 'internal/api/trello.go')
| -rw-r--r-- | internal/api/trello.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/api/trello.go b/internal/api/trello.go index 665bce0..4c4dc95 100644 --- a/internal/api/trello.go +++ b/internal/api/trello.go @@ -35,7 +35,7 @@ func NewTrelloClient(apiKey, token string) *TrelloClient { token: token, baseURL: trelloBaseURL, httpClient: &http.Client{ - Timeout: 30 * time.Second, + Timeout: 15 * time.Second, }, } } @@ -142,7 +142,9 @@ func (c *TrelloClient) GetCards(ctx context.Context, boardID string) ([]models.C // Fetch lists to get list names lists, err := c.getLists(ctx, boardID) listMap := make(map[string]string) - if err == nil { + if err != nil { + log.Printf("Warning: failed to fetch lists for board %s, cards will have empty list names: %v", boardID, err) + } else { // Build map of list ID to name for _, list := range lists { listMap[list.ID] = list.Name |
