diff --git a/app/Http/Requests/Report/GenericReportRequest.php b/app/Http/Requests/Report/GenericReportRequest.php index c197b21d76..e8e3e4f89a 100644 --- a/app/Http/Requests/Report/GenericReportRequest.php +++ b/app/Http/Requests/Report/GenericReportRequest.php @@ -32,7 +32,7 @@ class GenericReportRequest extends Request 'end_date' => 'string|date', 'date_key' => 'string', 'date_range' => 'required|string', - 'report_keys' => 'present|array', + 'report_keys' => 'required|present|array', 'send_email' => 'required|bool', ]; } diff --git a/routes/api.php b/routes/api.php index fe04fbe3c2..158fe34c2f 100644 --- a/routes/api.php +++ b/routes/api.php @@ -153,7 +153,7 @@ Route::group(['middleware' => ['throttle:100,1', 'api_db', 'token_auth', 'locale Route::post('recurring_quotes/bulk', 'RecurringQuoteController@bulk')->name('recurring_quotes.bulk'); Route::put('recurring_quotes/{recurring_quote}/upload', 'RecurringQuoteController@upload'); - Route::post('refresh', 'Auth\LoginController@refresh')->middleware('throttle:30,1'); + Route::post('refresh', 'Auth\LoginController@refresh')->middleware('throttle:50,1'); Route::post('reports/clients', 'Reports\ClientReportController'); Route::post('reports/contacts', 'Reports\ClientContactReportController'); diff --git a/tests/Feature/Export/ClientCsvTest.php b/tests/Feature/Export/ClientCsvTest.php index 0708848505..3002facc80 100644 --- a/tests/Feature/Export/ClientCsvTest.php +++ b/tests/Feature/Export/ClientCsvTest.php @@ -45,6 +45,7 @@ class ClientCsvTest extends TestCase $data = [ "date_range" => "this_year", "report_keys" => [], + "send_email" => false ]; $response = $this->withHeaders([ @@ -62,6 +63,7 @@ class ClientCsvTest extends TestCase $data = [ "date_range" => "this_year", "report_keys" => [], + "send_email" => false ]; $response = $this->withHeaders([