Add date range fields to goal criteria and update OpenAPI documentation
This commit is contained in:
@@ -780,7 +780,9 @@ class goals_criteria implements goals_criteria_i
|
||||
|
||||
return [
|
||||
'count' => $criteria->getProgress(),
|
||||
'target' => $target
|
||||
'target' => $target,
|
||||
'date_from' => ($criteria->start instanceof \DateTimeInterface) ? $criteria->start->format(DATE_ATOM) : null,
|
||||
'date_end' => ($criteria->end instanceof \DateTimeInterface) ? $criteria->end->format(DATE_ATOM) : null,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user