allow array of documents in task
All checks were successful
Build and Publish / build-release (push) Successful in 1m31s
All checks were successful
Build and Publish / build-release (push) Successful in 1m31s
This commit is contained in:
@@ -104,7 +104,7 @@ defmodule WorkloadServiceWeb.TaskController do
|
||||
"recorded_by" => "system",
|
||||
"document_data" => params["document_data"]
|
||||
},
|
||||
attachments: List.wrap(params["document_url"])
|
||||
attachments: params["document_urls"] || []
|
||||
}
|
||||
|
||||
dispatch_and_respond(conn, id, command)
|
||||
@@ -130,7 +130,7 @@ defmodule WorkloadServiceWeb.TaskController do
|
||||
"expiry_date" => params["expiry_date"],
|
||||
"recorded_by" => "system"
|
||||
},
|
||||
attachments: []
|
||||
attachments: params["document_urls"] || []
|
||||
}
|
||||
|
||||
dispatch_and_respond(conn, id, command)
|
||||
|
||||
Reference in New Issue
Block a user