Skip to content

Commit

Permalink
fix: missing {} (googleworkspace#409)
Browse files Browse the repository at this point in the history
* Fix missing {}

* Update Code.js

* Update Code.js

---------

Co-authored-by: Vinay Vyas <[email protected]>
  • Loading branch information
ggatto and vinay-google authored Jun 27, 2023
1 parent 12b38c5 commit 2581928
Showing 1 changed file with 6 additions and 6 deletions.
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

0 comments on commit 2581928

Please sign in to comment.