Преглед на файлове

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