Fixed calendar inclusion

With no return of the object, the main program couldn't verify the
proper addition of the event in the calendar.
This commit is contained in:
Ricardo Henrique Gracini Guiraldelli 2015-08-30 13:25:58 +02:00
parent 8fd00052f3
commit 8115ebacd4
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}