File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed
components/buysellads/actions
get-creatives-daily-stats Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,12 @@ export default {
4545 : undefined ,
4646 } ,
4747 } ) ;
48- $ . export ( "$summary" , `Successfully fetched ${ response . length } creative stat${ response . length === 1
48+
49+ const length = this . csvOutput
50+ ? response . split ( "\n" ) . length - 1
51+ : response . length ;
52+
53+ $ . export ( "$summary" , `Successfully fetched ${ length } creative stat${ length === 1
4954 ? ""
5055 : "s" } `) ;
5156 return response ;
Original file line number Diff line number Diff line change @@ -45,7 +45,12 @@ export default {
4545 : undefined ,
4646 } ,
4747 } ) ;
48- $ . export ( "$summary" , `Successfully fetched ${ response . length } creative${ response . length === 1
48+
49+ const length = this . csvOutput
50+ ? response . split ( "\n" ) . length - 1
51+ : response . length ;
52+
53+ $ . export ( "$summary" , `Successfully fetched ${ length } creative${ length === 1
4954 ? ""
5055 : "s" } `) ;
5156 return response ;
Original file line number Diff line number Diff line change @@ -45,7 +45,12 @@ export default {
4545 : undefined ,
4646 } ,
4747 } ) ;
48- $ . export ( "$summary" , `Successfully fetched ${ response . length } daily stat${ response . length === 1
48+
49+ const length = this . csvOutput
50+ ? response . split ( "\n" ) . length - 1
51+ : response . length ;
52+
53+ $ . export ( "$summary" , `Successfully fetched ${ length } daily stat${ length === 1
4954 ? ""
5055 : "s" } `) ;
5156 return response ;
Original file line number Diff line number Diff line change @@ -38,7 +38,12 @@ export default {
3838 : undefined ,
3939 } ,
4040 } ) ;
41- $ . export ( "$summary" , `Successfully fetched ${ response . length } line item${ response . length === 1
41+
42+ const length = this . csvOutput
43+ ? response . split ( "\n" ) . length - 1
44+ : response . length ;
45+
46+ $ . export ( "$summary" , `Successfully fetched ${ length } line item${ length === 1
4247 ? ""
4348 : "s" } `) ;
4449 return response ;
You can’t perform that action at this time.
0 commit comments