return blank strings for html_backup

This commit is contained in:
David Bomba 2021-09-30 13:09:04 +10:00
parent c718c6d19b
commit 84d807f12e

View File

@ -34,8 +34,8 @@ class InvoiceHistoryTransformer extends EntityTransformer
return [
'id' => '',
'activity_id' => '',
// 'json_backup' => (string) '',
// 'html_backup' => (string) '',
'json_backup' => (string) '',
'html_backup' => (string) '',
'amount' => (float) 0,
'created_at' => (int) 0,
'updated_at' => (int) 0,
@ -46,8 +46,8 @@ class InvoiceHistoryTransformer extends EntityTransformer
return [
'id' => $this->encodePrimaryKey($backup->id),
'activity_id' => $this->encodePrimaryKey($backup->activity_id),
// 'json_backup' => (string) $backup->json_backup ?: '',
// 'html_backup' => (string) $backup->html_backup ?: '',
'json_backup' => (string) '',
'html_backup' => (string) '',
'amount' => (float) $backup->amount,
'created_at' => (int) $backup->created_at,
'updated_at' => (int) $backup->updated_at,