Skip to content
Snippets Groups Projects
Commit efb71ec7 authored by Cam Saül's avatar Cam Saül
Browse files

Fix slack pulses :scream_cat:

parent 7ac76190
No related branches found
No related tags found
No related merge requests found
......@@ -39,3 +39,4 @@ bin/release/aws-eb/metabase-aws-eb.zip
*.sqlite
/reset-password-artifacts
/.env
/npm-debug.log
......@@ -108,10 +108,10 @@
[file filename channels]
{:pre [(string? filename)
(string? channels)]}
(let [response (http/post (str slack-api-baseurl "/files.upload") {:multipart [["token" (slack-token)]
["file" file]
["filename" filename]
["channels" channels]]
(let [response (http/post (str slack-api-baseurl "/files.upload") {:multipart [{:name "token", :content (slack-token)}
{:name "file", :content file}
{:name "filename", :content filename}
{:name "channels", :content channels}]
:as :json})]
(if (= 200 (:status response))
(get-in (:body response) [:file :url_private])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment