Commit 51684fe 1 parent 6b96988 commit 51684fe Copy full SHA for 51684fe
File tree 1 file changed +6
-6
lines changed
solutions/automations/vacation-calendar
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ function sync() {
59
59
lastRun = lastRun ? new Date ( lastRun ) : null ;
60
60
61
61
// 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
+ }
68
68
69
69
// For each user, finds events having one or more of the keywords in the event
70
70
// 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