From cd1f4b04a22ed6aae28e9561d7c79b5c60d6c1bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20Mu=CC=88ller?= Date: Mon, 8 Jan 2024 10:32:02 +0000 Subject: [PATCH] Updated monday api version --- .github/workflows/test.yml | 2 +- src/main.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 77c82ec..db6ff55 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Find links in comments id: check diff --git a/src/main.ts b/src/main.ts index 71afaba..f1edef7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -209,7 +209,7 @@ async function fetchMondayDetails( core.debug(`Fetching in ${Object.keys(groups).length} batches`) for (var row in groups) { let ids = groups[row] - let query = "query { items (ids: [" + ids.join(",") + "]) { id name column_values { id text } }}"; + let query = "query { items_page (limit: "+numberOfObjects+", query_params: {ids: [" + ids.join(",") + "]}) { id name column_values { id text } }}"; // mondayDomainTokens: Map; @@ -221,6 +221,7 @@ async function fetchMondayDetails( }, { headers: { + "API-Version": "2024-01", "Content-Type": "application/json", Authorization: mondayToken, },