mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-07 06:31:22 +00:00
Update API to match new end points.
This commit is contained in:
@@ -474,6 +474,24 @@ class JournalRepository implements JournalRepositoryInterface
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return string value of a meta date (or NULL).
|
||||
*
|
||||
* @param TransactionJournal $journal
|
||||
* @param string $field
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
public function getMetaDateString(TransactionJournal $journal, string $field): ?string
|
||||
{
|
||||
$date = $this->getMetaDate($journal, $field);
|
||||
if (null === $date) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $date->format('Y-m-d');
|
||||
}
|
||||
|
||||
/**
|
||||
* Return value of a meta field (or NULL) as a string.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user