Return null for backups if none exist
This commit is contained in:
parent
45b4267916
commit
0d44493e9c
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ class InvoiceHistoryTransformer extends EntityTransformer
|
|||
public function transform(?Backup $backup)
|
||||
{
|
||||
if(!$backup)
|
||||
return [];
|
||||
return null;
|
||||
|
||||
return [
|
||||
'id' => $this->encodePrimaryKey($backup->id),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue