diff --git a/CHANGELOG.md b/CHANGELOG.md index d546869d..531bbf7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [v1.17.1](https://github.com/contentstack/contentstack-management-javascript/tree/v1.17.1) (2024-08-15) + - Fix + - Fix file upload function in sanity report file + ## [v1.17.0](https://github.com/contentstack/contentstack-management-javascript/tree/v1.17.0) (2024-07-02) - Enhancement - Fixed package publish issue in github workflow diff --git a/package-lock.json b/package-lock.json index 92afbfb1..f8691ac5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@contentstack/management", - "version": "1.17.0", + "version": "1.17.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@contentstack/management", - "version": "1.17.0", + "version": "1.17.1", "license": "MIT", "dependencies": { "axios": "^1.7.2", diff --git a/package.json b/package.json index 3ce9d10f..fe5664a8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/management", - "version": "1.17.0", + "version": "1.17.1", "description": "The Content Management API is used to manage the content of your Contentstack account", "main": "./dist/node/contentstack-management.js", "browser": "./dist/web/contentstack-management.js", diff --git a/sanity-report.mjs b/sanity-report.mjs index 6a2fe583..68e6bb93 100644 --- a/sanity-report.mjs +++ b/sanity-report.mjs @@ -45,9 +45,9 @@ async function publishMessage (text, report) { channel: process.env.SLACK_CHANNEL, text: text }) - await app.client.files.upload({ + await app.client.files.uploadV2({ token: process.env.SLACK_BOT_TOKEN, - channels: process.env.SLACK_CHANNEL, + channel_id: process.env.SLACK_CHANNEL_ID, initial_comment: '*Here is the report generated*', filetype: 'html', filename: 'sanity-report.html',