decode using commanded
All checks were successful
Build and Publish / build-release (push) Successful in 1m28s
All checks were successful
Build and Publish / build-release (push) Successful in 1m28s
This commit is contained in:
@@ -43,6 +43,10 @@ defmodule WorkloadService.Aggregates.TaskId do
|
||||
end
|
||||
|
||||
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
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user