Incidents always use "status" as the numerical version

This commit is contained in:
James Brooks 2014-12-31 14:21:31 +00:00
parent 11002d5388
commit 53d43d8564

View File

@ -15,14 +15,14 @@ class IncidentTransformer extends TransformerAbstract
}
return [
'id' => (int) $incident->id,
'name' => $incident->name,
'message' => $incident->message,
'status_id' => (int) $incident->status,
'status' => $incident->humanStatus,
'component' => isset($transformer) ? $transformer->transform($component) : null,
'created_at' => $incident->created_at->timestamp,
'updated_at' => $incident->updated_at->timestamp,
'id' => (int) $incident->id,
'name' => $incident->name,
'message' => $incident->message,
'status' => (int) $incident->status,
'human_status' => $incident->humanStatus,
'component' => isset($transformer) ? $transformer->transform($component) : null,
'created_at' => $incident->created_at->timestamp,
'updated_at' => $incident->updated_at->timestamp,
];
}
}