Skip to content

Commit ddea150

Browse files
committed
updates
1 parent 0d292be commit ddea150

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

components/buysellads/actions/get-creatives-daily-stats/get-creatives-daily-stats.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

components/buysellads/actions/get-creatives/get-creatives.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

components/buysellads/actions/get-daily-stats/get-daily-stats.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

components/buysellads/actions/get-line-items/get-line-items.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)