Skip to content

Commit e0fbe70

Browse files
committed
ESLint
1 parent c05d062 commit e0fbe70

File tree

13 files changed

+43
-21
lines changed

13 files changed

+43
-21
lines changed

components/webflow_v2/actions/create-collection-item/create-collection-item.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default {
6565
},
6666
);
6767

68-
$.export("$summary", `Successfully created collection item ${fields.name ?? ""}`);
68+
$.export("$summary", `Successfully created collection item ${this.name ?? ""}`);
6969

7070
return response;
7171
},

components/webflow_v2/actions/delete-collection-item/delete-collection-item.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export default {
3434
},
3535
},
3636
async run({ $ }) {
37-
const { collectionId, itemId } = this;
37+
const {
38+
collectionId, itemId,
39+
} = this;
3840
const response = await this.app.deleteCollectionItem(collectionId, itemId);
3941

4042
$.export("$summary", "Successfully deleted item");

components/webflow_v2/actions/fulfill-order/fulfill-order.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export default {
2828
},
2929
},
3030
async run({ $ }) {
31-
const { app, siteId, orderId, ...data } = this;
31+
const {
32+
app, siteId, orderId, ...data
33+
} = this;
3234
const response = await app.fulfillOrder(siteId, orderId, data);
3335

3436
$.export("$summary", "Successfully fulfilled order");

components/webflow_v2/actions/list-orders/list-orders.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ export default {
2424
},
2525
},
2626
async run({ $ }) {
27-
const { app, ...data } = this;
27+
const {
28+
app, ...data
29+
} = this;
2830
const response = await app.listOrders(data);
2931

3032
$.export("$summary", `Successfully retrieved ${response?.length} orders`);

components/webflow_v2/actions/publish-site/publish-site.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default {
2525
},
2626
},
2727
async run({ $ }) {
28-
const response = await this.app.publishSite(siteId, domains);
28+
const response = await this.app.publishSite(this.siteId, this.domains);
2929

3030
$.export("$summary", "Successfully published site");
3131

components/webflow_v2/actions/update-collection-item/update-collection-item.mjs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ export default {
1010
props: {
1111
app,
1212
siteId: {
13-
propDefinition: [app, "sites"],
13+
propDefinition: [
14+
app,
15+
"sites",
16+
],
1417
},
1518
collectionId: {
1619
propDefinition: [
@@ -51,8 +54,8 @@ export default {
5154
field.slug === "name"
5255
? "Name given to the Item."
5356
: field.slug === "slug"
54-
? "URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug."
55-
: "See the documentation for additional information about [Field Types & Item Values](https://developers.webflow.com/reference/field-types-item-values).",
57+
? "URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug."
58+
: "See the documentation for additional information about [Field Types & Item Values](https://developers.webflow.com/reference/field-types-item-values).",
5659
optional: true,
5760
};
5861
}

components/webflow_v2/actions/update-order/update-order.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export default {
4040
},
4141
},
4242
async run({ $ }) {
43-
const { app, siteId, orderId, ...data } = this;
43+
const {
44+
app, siteId, orderId, ...data
45+
} = this;
4446

4547
const response = await app.updateOrder(siteId, orderId, data);
4648

components/webflow_v2/sources/changed-collection-item/changed-collection-item.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export default {
1313
return "collection_item_changed";
1414
},
1515
generateMeta(data) {
16-
const { id, fieldData, lastUpdated } = data;
16+
const {
17+
id, fieldData, lastUpdated,
18+
} = data;
1719
const ts = Date.parse(lastUpdated);
1820

1921
return {

components/webflow_v2/sources/common/common.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ export default {
77
props: {
88
app,
99
siteId: {
10-
propDefinition: [app, "sites"],
10+
propDefinition: [
11+
app,
12+
"sites",
13+
],
1114
},
1215
db: "$.service.db",
1316
http: "$.interface.http",

components/webflow_v2/sources/new-collection-item/new-collection-item.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ export default {
1313
return "collection_item_created";
1414
},
1515
generateMeta(data) {
16-
const { id, fieldData } = data;
16+
const {
17+
id, fieldData,
18+
} = data;
1719
return {
1820
id,
1921
summary: `New item: ${fieldData?.slug ?? fieldData?.name ?? id}`,

0 commit comments

Comments
 (0)