File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,14 @@ export default {
3131 const response = await this . app . createSubscriber ( {
3232 $,
3333 data : {
34- email : this . email ,
35- first_name : this . firstName ,
36- last_name : this . lastName ,
34+ subscriber : {
35+ email : this . email ,
36+ first_name : this . firstName ,
37+ last_name : this . lastName ,
38+ } ,
3739 } ,
3840 } ) ;
39- $ . export ( "$summary" , "Successfully created new subscriber named " ) ;
41+ $ . export ( "$summary" , "Successfully created new subscriber" ) ;
4042 return response ;
4143 } ,
4244} ;
Original file line number Diff line number Diff line change @@ -22,11 +22,13 @@ export default {
2222 } ,
2323 } ,
2424 async run ( { $ } ) {
25- const response = await this . app . unsubscribeSubscriber ( {
25+ const response = await this . app . updateSubscriberStatus ( {
2626 $,
2727 email : this . email ,
2828 data : {
29- status : this . status ,
29+ subscriber : {
30+ status : this . status ,
31+ } ,
3032 } ,
3133 } ) ;
3234 $ . export ( "$summary" , "Successfully uptated subscriber status" ) ;
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export default {
5252 optional : true ,
5353 } ,
5454 imageCandidates : {
55- type : "string" ,
55+ type : "string[] " ,
5656 label : "Image Candidates" ,
5757 description : "List of candidate image URLs" ,
5858 optional : true ,
@@ -85,7 +85,7 @@ export default {
8585 ...args ,
8686 } ) ;
8787 } ,
88- async unsubscribeSubscriber ( {
88+ async updateSubscriberStatus ( {
8989 email, ...args
9090 } ) {
9191 return this . _makeRequest ( {
You can’t perform that action at this time.
0 commit comments