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 21bcdfc commit 9e2e3f5
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 @@
## Change log

### Version: 3.20.4
#### Date: August-16-2024
##### Fix:
- Fix file upload function in sanity report file

### Version: 3.20.3
#### Date: August-02-2024
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",
"version": "3.20.3",
"version": "3.20.4",
"description": "Contentstack Javascript SDK",
"homepage": "https://www.contentstack.com/",
"author": {
Expand Down
4 changes: 2 additions & 2 deletions sanity-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,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: 'tap-html.html',
Expand Down

0 comments on commit 9e2e3f5

Please sign in to comment.