Skip to content

Commit 51684fe

Browse files
ggattovinay-google
andauthored
fix: missing {} (#409)
* Fix missing {} * Update Code.js * Update Code.js --------- Co-authored-by: Vinay Vyas <69166360+vinay-google@users.noreply.github.com>
1 parent 6b96988 commit 51684fe

File tree

1 file changed

+6
-6
lines changed
  • solutions/automations/vacation-calendar

1 file changed

+6
-6
lines changed

solutions/automations/vacation-calendar/Code.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ function sync() {
5959
lastRun = lastRun ? new Date(lastRun) : null;
6060

6161
// Gets the list of users in the Google Group.
62-
if (ONLY_DIRECT_MEMBERS)
63-
let users = GroupsApp.getGroupByEmail(GROUP_EMAIL).getUsers();
64-
else if (Array.isArray(GROUP_EMAIL))
65-
let users = getUsersFromGroups(GROUP_EMAIL);
66-
else
67-
let users = getAllMembers(GROUP_EMAIL);
62+
let users = getAllMembers(GROUP_EMAIL);
63+
if (ONLY_DIRECT_MEMBERS){
64+
users = GroupsApp.getGroupByEmail(GROUP_EMAIL).getUsers();
65+
} else if (Array.isArray(GROUP_EMAIL)) {
66+
users = getUsersFromGroups(GROUP_EMAIL);
67+
}
6868

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

0 commit comments

Comments
 (0)