Skip to content

Commit b696eb4

Browse files
fix: specify action parameter for maintenance command in update process
1 parent 9d2c046 commit b696eb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Console/Commands/Update.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function handle()
2828
{
2929
$error = false;
3030
try {
31-
$this->call('maintenance', ['start']);
31+
$this->call('maintenance', ['action' => 'start']);
3232
$process = new Process(['git', 'pull', 'origin', 'main']);
3333
$process->run();
3434
if (! $process->isSuccessful()) {
@@ -51,7 +51,7 @@ public function handle()
5151
}
5252
} finally {
5353
$error ? $this->error('Update Gagal!') : $this->info('Update Sukses! ');
54-
$this->call('maintenance', ['stop']);
54+
$this->call('maintenance', ['action' => 'stop']);
5555
}
5656
}
5757
}

0 commit comments

Comments
 (0)