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

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()
];
}