Skip to content

Commit 7c06e37

Browse files
committed
fix eslint
1 parent b16dfac commit 7c06e37

File tree

1 file changed

+30
-7
lines changed

1 file changed

+30
-7
lines changed

components/youtube_analytics_api/actions/common/reports-query.mjs

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,34 @@ export default {
66
props: {
77
app,
88
startDate: {
9-
propDefinition: [app, "startDate"],
9+
propDefinition: [
10+
app,
11+
"startDate",
12+
],
1013
},
1114
endDate: {
12-
propDefinition: [app, "endDate"],
15+
propDefinition: [
16+
app,
17+
"endDate",
18+
],
1319
},
1420
dimensions: {
15-
propDefinition: [app, "dimensions"],
21+
propDefinition: [
22+
app,
23+
"dimensions",
24+
],
1625
},
1726
sort: {
18-
propDefinition: [app, "sort"],
27+
propDefinition: [
28+
app,
29+
"sort",
30+
],
1931
},
2032
maxResults: {
21-
propDefinition: [app, "maxResults"],
33+
propDefinition: [
34+
app,
35+
"maxResults",
36+
],
2237
},
2338
idType: {
2439
type: "string",
@@ -69,7 +84,9 @@ export default {
6984
return {};
7085
},
7186
getIdsParam() {
72-
const { idType, ids } = this;
87+
const {
88+
idType, ids,
89+
} = this;
7390
if (idType === constants.ID_TYPE.CHANNEL.value) {
7491
return "channel==MINE";
7592
}
@@ -90,7 +107,13 @@ export default {
90107

91108
return utils.arrayToCommaSeparatedList(
92109
Object.entries(filtersObj).reduce(
93-
(acc, [key, val]) => [...acc, `${key}==${val}`],
110+
(acc, [
111+
key,
112+
val,
113+
]) => [
114+
...acc,
115+
`${key}==${val}`,
116+
],
94117
[],
95118
),
96119
";",

0 commit comments

Comments
 (0)