From 8115ebacd44539a049463f41f10c941eaa24c4c6 Mon Sep 17 00:00:00 2001 From: Ricardo Henrique Gracini Guiraldelli Date: Sun, 30 Aug 2015 13:25:58 +0200 Subject: [PATCH] Fixed calendar inclusion With no return of the object, the main program couldn't verify the proper addition of the event in the calendar. --- calendar_processor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar_processor.js b/calendar_processor.js index 2e9471a..8209b77 100644 --- a/calendar_processor.js +++ b/calendar_processor.js @@ -1,5 +1,5 @@ // connects to Google Calendar and creates an event in the default calendar // of the account function create_event(title, date){ - CalendarApp.getDefaultCalendar().createAllDayEvent(title, date); + return CalendarApp.getDefaultCalendar().createAllDayEvent(title, date); }