decode using commanded
All checks were successful
Build and Publish / build-release (push) Successful in 1m28s

This commit is contained in:
2026-04-17 12:15:00 -05:00
parent 1e493840de
commit c31970ced5

View File

@@ -43,6 +43,10 @@ defmodule WorkloadService.Aggregates.TaskId do
end end
defimpl Commanded.Serialization.JsonDecoder do defimpl Commanded.Serialization.JsonDecoder do
def decode(%{org_id: org_id, type: type, task_id: task_id}) do
WorkloadService.Aggregates.TaskId.new(org_id, type, task_id)
end
def decode(id), do: id def decode(id), do: id
end end
end end