1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Implement slight delay on Company Import

This commit is contained in:
David Bomba 2021-06-08 18:58:27 +10:00
parent 12a31b79e7
commit c2e2ab60cb

View File

@ -70,7 +70,7 @@ class ImportJsonController extends BaseController
Cache::put( $hash, base64_encode( $contents ), 3600 );
CompanyImport::dispatch(auth()->user()->getCompany(), auth()->user(), $hash, $request->except('files'));
CompanyImport::dispatch(auth()->user()->getCompany(), auth()->user(), $hash, $request->except('files'))->delay(now()->addMinutes(2));
return response()->json(['message' => 'Processing'], 200);