Skip to content

Commit

Permalink
Fix file upload function in sanity report file
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithad0703 committed Aug 12, 2024
1 parent 4527119 commit 9e85e1a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions sanity-report.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 9e85e1a

Please sign in to comment.