Skip to content

Commit fbdca84

Browse files
committed
ESLint
1 parent ae02097 commit fbdca84

File tree

3 files changed

+68
-21
lines changed

3 files changed

+68
-21
lines changed

components/hostaway/actions/create-reservation/create-reservation.mjs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,17 @@ export default {
5353
label: "Additional Fields",
5454
description: "Additional fields to set for the reservation. [See the documentation](https://api.hostaway.com/documentation#reservation-object) for all available fields.",
5555
optional: true,
56-
}
56+
},
5757
},
5858
async run({ $ }) {
59-
const { hostaway, additionalFields = {}, ...data } = this;
59+
const {
60+
hostaway, additionalFields = {}, ...data
61+
} = this;
6062
const { result } = await hostaway.createReservation({
6163
$,
6264
data: {
6365
...data,
64-
...additionalFields
66+
...additionalFields,
6567
},
6668
});
6769

components/hostaway/common/constants.mjs

Lines changed: 61 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,67 @@ const COMMUNICATION_TYPES = [
4343
];
4444

4545
const CHANNEL_OPTIONS = [
46-
{ value: 2018, label: "airbnbOfficial", },
47-
{ value: 2002, label: "homeaway", },
48-
{ value: 2005, label: "bookingcom", },
49-
{ value: 2007, label: "expedia", },
50-
{ value: 2009, label: "homeawayical", },
51-
{ value: 2010, label: "vrboical", },
52-
{ value: 2000, label: "direct", },
53-
{ value: 2013, label: "bookingengine", },
54-
{ value: 2015, label: "customIcal", },
55-
{ value: 2016, label: "tripadvisorical", },
56-
{ value: 2017, label: "wordpress", },
57-
{ value: 2019, label: "marriott", },
58-
{ value: 2020, label: "partner", },
59-
{ value: 2021, label: "gds", },
60-
{ value: 2022, label: "google", },
61-
]
46+
{
47+
value: 2018,
48+
label: "airbnbOfficial",
49+
},
50+
{
51+
value: 2002,
52+
label: "homeaway",
53+
},
54+
{
55+
value: 2005,
56+
label: "bookingcom",
57+
},
58+
{
59+
value: 2007,
60+
label: "expedia",
61+
},
62+
{
63+
value: 2009,
64+
label: "homeawayical",
65+
},
66+
{
67+
value: 2010,
68+
label: "vrboical",
69+
},
70+
{
71+
value: 2000,
72+
label: "direct",
73+
},
74+
{
75+
value: 2013,
76+
label: "bookingengine",
77+
},
78+
{
79+
value: 2015,
80+
label: "customIcal",
81+
},
82+
{
83+
value: 2016,
84+
label: "tripadvisorical",
85+
},
86+
{
87+
value: 2017,
88+
label: "wordpress",
89+
},
90+
{
91+
value: 2019,
92+
label: "marriott",
93+
},
94+
{
95+
value: 2020,
96+
label: "partner",
97+
},
98+
{
99+
value: 2021,
100+
label: "gds",
101+
},
102+
{
103+
value: 2022,
104+
label: "google",
105+
},
106+
];
62107

63108
export default {
64109
DEFAULT_LIMIT,

components/hostaway/hostaway.app.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default {
122122
type: "integer",
123123
label: "Channel",
124124
description: "Identifier of the channel",
125-
options: constants.CHANNEL_OPTIONS
125+
options: constants.CHANNEL_OPTIONS,
126126
},
127127
},
128128
methods: {
@@ -223,6 +223,6 @@ export default {
223223
method: "POST",
224224
...args,
225225
});
226-
}
226+
},
227227
},
228228
};

0 commit comments

Comments
 (0)