File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,9 @@ export default {
2727 async run ( { $ } ) {
2828 const { url } = this ;
2929
30- const response = await this . blotato . _makeRequest ( {
30+ const response = await this . blotato . uploadMedia ( {
3131 $,
32- method : "POST" ,
33- path : "/v2/media" ,
34- data : {
35- url,
36- } ,
32+ url,
3733 } ) ;
3834
3935 $ . export ( "$summary" , `Successfully uploaded media. New URL: ${ response . url } ` ) ;
Original file line number Diff line number Diff line change @@ -70,16 +70,16 @@ export default {
7070 } ) ;
7171 } ,
7272 uploadMedia ( {
73- file , mediaType , ...args
73+ $ , url , ...args
7474 } = { } ) {
7575 return this . _makeRequest ( {
76+ $,
7677 method : "POST" ,
7778 path : "/v2/media" ,
7879 data : {
79- file,
80- mediaType,
81- ...args ,
80+ url,
8281 } ,
82+ ...args ,
8383 } ) ;
8484 } ,
8585 listTemplates ( {
You can’t perform that action at this time.
0 commit comments