Update AccountTransformer, add last_fetched_at attribute

This commit is contained in:
Daniel Supernault 2020-04-26 23:29:24 -06:00
parent fcab5010d6
commit 38b0233e96
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ class AccountTransformer extends Fractal\TransformerAbstract
'local' => (bool) $local,
'is_admin' => (bool) $is_admin,
'created_at' => $profile->created_at->toJSON(),
'header_bg' => $profile->header_bg
'header_bg' => $profile->header_bg,
'last_fetched_at' => optional($profile->last_fetched_at)->toJSON()
];
}