Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
email only managers refs #65
Browse files Browse the repository at this point in the history
  • Loading branch information
aurreco-uga committed Nov 18, 2023
1 parent 3bc0c3c commit 6a49e0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class Config extends Options

@CommandLine.Option(
names = "--enable-email",
defaultValue = "true", // Permanently enable e-mail, ignoring env var. Testing can be done with fake smtp.
defaultValue = "${env:ENABLE_EMAIL}", // set true to permanently enable e-mail, ignoring env var. Testing can be done with fake smtp.
arity = "1"
)
@SuppressWarnings("FieldMayBeFinal")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public void applySelfPatch(
.orElseThrow();
Optional<String> userEmail = AccountRepo.Select.getInstance().selectEmailByUserId(row.getUserId());
final var ccs = ProviderRepo.Select.byDataset(row.getDatasetId(), 100L, 0L).stream()
.filter(ProviderRow::isManager)
.map(UserRow::getEmail)
.toArray(String[]::new);
EndUserRepo.Update.self(row, userID);
Expand Down

0 comments on commit 6a49e0e

Please sign in to comment.