Skip to content

Commit 0359384

Browse files
authored
Merging pull request #17893
* simplify start & end date logic * pnpm-lock.yaml
1 parent 1968dec commit 0359384

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

components/google_calendar/actions/create-event/create-event.mjs

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "google_calendar-create-event",
88
name: "Create Event",
99
description: "Create an event in a Google Calendar. [See the documentation](https://developers.google.com/calendar/api/v3/reference/events/insert)",
10-
version: "0.2.5",
10+
version: "0.2.6",
1111
type: "action",
1212
props: {
1313
googleCalendar,
@@ -144,14 +144,24 @@ export default {
144144
summary: this.summary,
145145
location: this.location,
146146
description: this.description,
147-
start: this.getDateParam({
148-
date: this.eventStartDate,
147+
start: {
148+
date: this.eventStartDate?.length <= 10
149+
? this.eventStartDate
150+
: undefined,
151+
dateTime: this.eventStartDate?.length > 10
152+
? this.eventStartDate
153+
: undefined,
149154
timeZone,
150-
}),
151-
end: this.getDateParam({
152-
date: this.eventEndDate,
155+
},
156+
end: {
157+
date: this.eventEndDate?.length <= 10
158+
? this.eventEndDate
159+
: undefined,
160+
dateTime: this.eventEndDate?.length > 10
161+
? this.eventEndDate
162+
: undefined,
153163
timeZone,
154-
}),
164+
},
155165
recurrence,
156166
attendees,
157167
colorId: this.colorId,

components/google_calendar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/google_calendar",
3-
"version": "0.5.8",
3+
"version": "0.5.9",
44
"description": "Pipedream Google_calendar Components",
55
"main": "google_calendar.app.mjs",
66
"keywords": [

pnpm-lock.yaml

Lines changed: 3 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)