Skip to content

Commit 8ca2682

Browse files
committed
Fix bugs
1 parent 4e0f3fb commit 8ca2682

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/app/Commands/PruneCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class PruneCommand extends Command
1616
public function handle(): int
1717
{
1818
$this->call('model:prune', [
19-
'----model' => MailLog::class,
19+
'--model' => MailLog::class,
2020
]);
2121

2222
return static::SUCCESS;

src/database/migrations/2022_02_11_013396_make_json_fields.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Illuminate\Database\Migrations\Migration;
66
use Illuminate\Database\Schema\Blueprint;
7+
use Illuminate\Support\Facades\Artisan;
78
use Illuminate\Support\Facades\DB;
89
use Illuminate\Support\Facades\Schema;
910
use Illuminate\Support\Str;
@@ -14,6 +15,8 @@ public function up(): void
1415
{
1516
$table = config('mail-viewer.table', 'mail_logs');
1617

18+
Artisan::call('mail-viewer:prune');
19+
1720
DB::table($table)
1821
->latest('date')
1922
->each(function (stdClass $mail) use ($table) {

0 commit comments

Comments
 (0)