Replace with corrected static calls
This commit is contained in:
parent
5c81f820d8
commit
bbf2f33c5e
2 changed files with 4 additions and 4 deletions
|
@ -26,8 +26,8 @@ class LocationTransformer extends Transformer
|
|||
'id' => $model->id,
|
||||
'short' => $model->short,
|
||||
'long' => $model->long,
|
||||
$model->getUpdatedAtColumn() => $this->formatTimestamp($model->updated_at),
|
||||
$model->getCreatedAtColumn() => $this->formatTimestamp($model->created_at),
|
||||
$model->getUpdatedAtColumn() => self::formatTimestamp($model->updated_at),
|
||||
$model->getCreatedAtColumn() => self::formatTimestamp($model->created_at),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -24,8 +24,8 @@ class NodeTransformer extends Transformer
|
|||
{
|
||||
$response = $model->toArray();
|
||||
|
||||
$response[$model->getUpdatedAtColumn()] = $this->formatTimestamp($model->updated_at);
|
||||
$response[$model->getCreatedAtColumn()] = $this->formatTimestamp($model->created_at);
|
||||
$response[$model->getUpdatedAtColumn()] = self::formatTimestamp($model->updated_at);
|
||||
$response[$model->getCreatedAtColumn()] = self::formatTimestamp($model->created_at);
|
||||
|
||||
$resources = $model->servers()->select(['memory', 'disk'])->get();
|
||||
|
||||
|
|
Loading…
Reference in a new issue