Skip to content

Commit

Permalink
Update CreateCustomerCommandConsumer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinRyazantsev authored Feb 29, 2024
1 parent 5e58bcd commit 965f64b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public async Task Consume(ConsumeContext<CreateCustomerCommand> context)
await _mailerlite.SetCustomerRegisteredAsync(command.Email, command.Timestamp);

var groupsToSubscribe = _mailerliteConfig.NewCustomerFromAllAreasGroups;

// Note: this field is not passed by the KYC service. This task wasn't finished.
// Actually, there is no need to update KYC service to pass this field from there
// the value can be evaluated here by checking POA country status of the user
// take into account the POA can be empty
if (!command.FromRestrictedArea)
{
groupsToSubscribe = groupsToSubscribe
Expand Down

0 comments on commit 965f64b

Please sign in to comment.