File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
solutions/automations/vacation-calendar Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments