Skip to content
Snippets Groups Projects
Commit aac33577 authored by stevereis's avatar stevereis
Browse files

Fix harmonized date

parent b9e19b91
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ export const transformToExperiment = jsonata(`
$toArray := function($x) { $type($x) = 'array' ? $x : [$x]};
$convDate := function($v) { $type($v) = 'string' ? $toMillis($v) : $v };
{
"name": name,
......@@ -41,10 +42,10 @@ export const transformToExperiment = jsonata(`
"author": createdBy,
"viewed": viewed,
"status": status,
"createdAt": created,
"finishedAt": finished,
"createdAt": $convDate(created),
"finishedAt": $convDate(finished),
"shared": shared,
"updateAt": updated,
"updateAt": $convDate(updated),
"domain": algorithm.parameters[name = "pathology"].value,
"variables": $split(algorithm.parameters[name = "y"].value, ','),
"coVariables": $toArray($split(algorithm.parameters[name = "x"].value, ',')),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment