From bff920e06d61265b3dfca97ed4c01e3ba6252669 Mon Sep 17 00:00:00 2001 From: Uku Pattak Date: Sat, 10 Jul 2021 21:18:44 +0300 Subject: [PATCH] Fix incorrect api call --- dist/index.js | 6 ++++-- index.js | 6 ++++-- package.json | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index 7dcaa96..49b75ec 100644 --- a/dist/index.js +++ b/dist/index.js @@ -9045,8 +9045,10 @@ async function getCardAttachments(cardId) { const url = `https://api.trello.com/1/cards/${cardId}/attachments` return await axios__WEBPACK_IMPORTED_MODULE_0__.get(url, { - key: trelloApiKey, - token: trelloAuthToken, + params: { + key: trelloApiKey, + token: trelloAuthToken, + }, }) .then((response) => { return response.data diff --git a/index.js b/index.js index 2c4260b..035e91e 100644 --- a/index.js +++ b/index.js @@ -75,8 +75,10 @@ async function getCardAttachments(cardId) { return await axios .get(url, { - key: trelloApiKey, - token: trelloAuthToken, + params: { + key: trelloApiKey, + token: trelloAuthToken, + }, }) .then((response) => { return response.data diff --git a/package.json b/package.json index 8eecafe..52e6a46 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@remato/trello-integration-action", - "version": "2.1.1", + "version": "2.1.2", "license": "MIT", "description": "GitHub Action to integrate Github pull requests with Trello cards", "main": "dist/index.js",