properly decode policy id
Some checks failed
Build and Publish / build-release (push) Failing after 35s
Some checks failed
Build and Publish / build-release (push) Failing after 35s
This commit is contained in:
@@ -43,6 +43,10 @@ defmodule PolicyService.Aggregates.PolicyId do
|
||||
end
|
||||
|
||||
defimpl Commanded.Serialization.JsonDecoder do
|
||||
def decode(%{org_id: org_id, policy_type: policy_type, application_id: application_id}) do
|
||||
PolicyService.Aggregates.PolicyId.new(org_id, policy_type, application_id)
|
||||
end
|
||||
|
||||
def decode(id), do: id
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user