add authentication with zitadel
Some checks failed
Build and Publish / build-release (push) Failing after 1m49s
Some checks failed
Build and Publish / build-release (push) Failing after 1m49s
This commit is contained in:
@@ -32,7 +32,8 @@ defmodule PolicyService.Aggregates.LifePolicyApplication do
|
||||
|
||||
def validate_insured_object(_), do: {:error, :invalid_life_details}
|
||||
|
||||
def validate_insured(%{"type" => "corporate"}), do: {:error, :life_insurance_requires_individual}
|
||||
def validate_insured(%{"type" => "corporate"}),
|
||||
do: {:error, :life_insurance_requires_individual}
|
||||
|
||||
def validate_insured(%{"type" => "individual", "gender" => gender} = insured)
|
||||
when is_binary(gender) and byte_size(gender) > 0 do
|
||||
|
||||
Reference in New Issue
Block a user