Skip to content

Commit ec85e7d

Browse files
committed
Fix: files_upload_v2 with channel.
1 parent ec00bc4 commit ec85e7d

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### 2.5.2 (Next)
22

3+
* [#548](https://github.com/slack-ruby/slack-ruby-client/pull/548): Fix: `files_upload_v2` with `#channel` - [@dblock](https://github.com/dblock).
34
* Your contribution here.
45

56
### 2.5.1 (2025/02/11)

lib/slack/web/api/helpers/files.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def files_upload_v2(params = {})
4646
conversations_id(channel: channel)['channel']['id']
4747
end.uniq.join(',')
4848
elsif params[:channel]
49-
complete_upload_request_params[:channel] = conversations_id(
49+
complete_upload_request_params[:channel_id] = conversations_id(
5050
channel: params[:channel]
5151
)['channel']['id']
5252
elsif params[:channel_id]

spec/fixtures/slack/web/files_upload_v2_channel.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/fixtures/slack/web/files_upload_v2_with_channel_name_channel.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)