Make sure update and edit work for location, API or not.

This commit is contained in:
James Cole
2020-01-02 19:12:40 +01:00
parent f7d6a4c6f9
commit e1577a4a76
6 changed files with 35 additions and 20 deletions

View File

@@ -68,13 +68,9 @@ class AccountFormRequest extends Request
'interest' => $this->string('interest'),
'interest_period' => $this->string('interest_period'),
'include_net_worth' => '1',
// new: location
'longitude' => $this->string('location_longitude'),
'latitude' => $this->string('location_latitude'),
'zoom_level' => $this->integer('location_zoom_level'),
'has_location' => $this->boolean('location_has_location'),
];
$data = $this->appendLocationData($data, 'location');
if (false === $this->boolean('include_net_worth')) {
$data['include_net_worth'] = '0';
}