Update / create methods can handle order #3200

This commit is contained in:
James Cole
2020-07-24 16:41:58 +02:00
parent 1286694efd
commit 74247c292f
4 changed files with 30 additions and 29 deletions

View File

@@ -96,10 +96,11 @@ class AccountTransformer extends AbstractTransformer
$zoomLevel = $location->zoom_level;
}
return [
'id' => (int)$account->id,
'id' => (int) $account->id,
'created_at' => $account->created_at->toAtomString(),
'updated_at' => $account->updated_at->toAtomString(),
'active' => $account->active,
'order' => $account->order,
'name' => $account->name,
'type' => $accountType,
'account_role' => $accountRole,