properly decode policy id
Some checks failed
Build and Publish / build-release (push) Failing after 35s

This commit is contained in:
2026-04-17 12:57:35 -05:00
parent 1bb457c145
commit f59c9cadfa
3 changed files with 34 additions and 6 deletions

View File

@@ -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