Update NotificationTransformer

pull/1232/head
Daniel Supernault 6 years ago
parent 2584b8b093
commit 904a90a849
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -17,7 +17,7 @@ class NotificationTransformer extends Fractal\TransformerAbstract
return [ return [
'id' => (string) $notification->id, 'id' => (string) $notification->id,
'type' => $this->replaceTypeVerb($notification->action), 'type' => $this->replaceTypeVerb($notification->action),
'created_at' => (string) $notification->created_at, 'created_at' => (string) $notification->created_at->format('c'),
'account' => null, 'account' => null,
'status' => null 'status' => null
]; ];

Loading…
Cancel
Save