mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-18 05:58:18 +01:00
Incidents always use "status" as the numerical version
This commit is contained in:
parent
11002d5388
commit
53d43d8564
@ -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,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user