diff --git a/CodeJoyRide.Api/Customers/Services/CustomerRepository.cs b/CodeJoyRide.Api/Customers/Services/CustomerRepository.cs index 6ce9f53..f129976 100644 --- a/CodeJoyRide.Api/Customers/Services/CustomerRepository.cs +++ b/CodeJoyRide.Api/Customers/Services/CustomerRepository.cs @@ -36,7 +36,7 @@ public Maybe Find(string email) .FirstOrDefault(c => c.Email.IsSome && c.Email.UnwrappedValue == email); if (foundedCustomer is null) - throw new CustomerNotFoundException(email); + return CodeJoyRide.Fx.Maybe.None; return Maybe.Some(foundedCustomer); }