Replace with corrected static calls

This commit is contained in:
Dane Everitt 2021-08-07 13:25:35 -07:00
parent 5c81f820d8
commit bbf2f33c5e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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();