Added deleted_at to license transformer

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-02-16 09:33:28 -08:00
parent 5540069cce
commit 017534bc07

View file

@ -45,7 +45,9 @@ class LicensesTransformer
'category' => ($license->category) ? ['id' => (int) $license->category->id,'name'=> e($license->category->name)] : null, 'category' => ($license->category) ? ['id' => (int) $license->category->id,'name'=> e($license->category->name)] : null,
'created_at' => Helper::getFormattedDateObject($license->created_at, 'datetime'), 'created_at' => Helper::getFormattedDateObject($license->created_at, 'datetime'),
'updated_at' => Helper::getFormattedDateObject($license->updated_at, 'datetime'), 'updated_at' => Helper::getFormattedDateObject($license->updated_at, 'datetime'),
'deleted_at' => Helper::getFormattedDateObject($license->deleted_at, 'datetime'),
'user_can_checkout' => (bool) ($license->free_seats_count > 0), 'user_can_checkout' => (bool) ($license->free_seats_count > 0),
]; ];
$permissions_array['available_actions'] = [ $permissions_array['available_actions'] = [