Преглед изворни кода

Update NotificationTransformer

Daniel Supernault пре 5 година
родитељ
комит
30402f8602
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      app/Transformer/Api/NotificationTransformer.php

+ 1 - 3
app/Transformer/Api/NotificationTransformer.php

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