Remove restore of members
This commit is contained in:
parent
c463af3937
commit
4a4f2aa8d1
|
@ -5,7 +5,6 @@ namespace App\Initialize;
|
||||||
use App\Initialize\Actions\ProcessRedisAction;
|
use App\Initialize\Actions\ProcessRedisAction;
|
||||||
use App\Nami\Api\CompleteMemberToRedisJob;
|
use App\Nami\Api\CompleteMemberToRedisJob;
|
||||||
use App\Setting\NamiSettings;
|
use App\Setting\NamiSettings;
|
||||||
use DB;
|
|
||||||
use Illuminate\Bus\Batch;
|
use Illuminate\Bus\Batch;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Facades\Bus;
|
use Illuminate\Support\Facades\Bus;
|
||||||
|
@ -43,14 +42,6 @@ class InitializeMembers
|
||||||
->dispatch();
|
->dispatch();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function restore(): void
|
|
||||||
{
|
|
||||||
DB::table('payments')->delete();
|
|
||||||
DB::table('course_members')->delete();
|
|
||||||
DB::table('memberships')->delete();
|
|
||||||
DB::table('members')->delete();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function asCommand(Command $command): int
|
public function asCommand(Command $command): int
|
||||||
{
|
{
|
||||||
$this->handle(app(NamiSettings::class)->login());
|
$this->handle(app(NamiSettings::class)->login());
|
||||||
|
|
Loading…
Reference in New Issue