Compare commits

...

2 Commits

Author SHA1 Message Date
Philipp Lang 07852aa72b Remove initializeAction from kernel
continuous-integration/drone/tag Build is passing Details
continuous-integration/drone/push Build is passing Details
2023-05-15 20:09:14 +02:00
Philipp Lang 09182821f8 Remove check when initializing 2023-05-15 19:59:28 +02:00
2 changed files with 0 additions and 7 deletions

View File

@ -2,7 +2,6 @@
namespace App\Console;
use App\Initialize\Actions\InitializeAction;
use App\Initialize\InitializeMembers;
use App\Invoice\Actions\InvoiceSendAction;
use Illuminate\Console\Scheduling\Schedule;
@ -18,7 +17,6 @@ class Kernel extends ConsoleKernel
*/
protected $commands = [
InvoiceSendAction::class,
InitializeAction::class,
InitializeMembers::class,
];

View File

@ -16,14 +16,11 @@ use App\Setting\NamiSettings;
use Illuminate\Http\RedirectResponse;
use Lorisleiva\Actions\ActionRequest;
use Lorisleiva\Actions\Concerns\AsAction;
use Zoomyboy\LaravelNami\Nami;
class InitializeAction
{
use AsAction;
public string $commandSignature = 'initialize {--mglnr=} {--password=} {--group=}';
/**
* @var array<int, class-string>
*/
@ -74,8 +71,6 @@ class InitializeAction
public function asController(ActionRequest $request, NamiSettings $settings): RedirectResponse
{
$api = Nami::freshLogin($request->input('mglnr'), $request->input('password'));
$settings->mglnr = (int) $request->input('mglnr');
$settings->password = $request->input('password');
$settings->default_group_id = (int) $request->input('group_id');