Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions solutions/automations/vacation-calendar/Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ function sync() {
lastRun = lastRun ? new Date(lastRun) : null;

// Gets the list of users in the Google Group.
if (ONLY_DIRECT_MEMBERS)
let users = GroupsApp.getGroupByEmail(GROUP_EMAIL).getUsers();
else if (Array.isArray(GROUP_EMAIL))
let users = getUsersFromGroups(GROUP_EMAIL);
else
let users = getAllMembers(GROUP_EMAIL);
let users = getAllMembers(GROUP_EMAIL);
if (ONLY_DIRECT_MEMBERS){
users = GroupsApp.getGroupByEmail(GROUP_EMAIL).getUsers();
} else if (Array.isArray(GROUP_EMAIL)) {
users = getUsersFromGroups(GROUP_EMAIL);
}

// For each user, finds events having one or more of the keywords in the event
// summary in the specified date range. Imports each of those to the team
Expand Down