Fixing invalid file checker for existing TelegramSession model

This commit is contained in:
Setiawan Hu 2020-08-13 23:12:23 +07:00
parent 0b2840f819
commit 84c85b8853

View File

@ -43,7 +43,7 @@ class MultiSessionCommand extends Command
if ($this->option('model')) { if ($this->option('model')) {
$user = $this->ask('Telegram user model (for relation)', 'App/User'); $user = $this->ask('Telegram user model (for relation)', 'App/User');
if (file_exists(app_path()) && !$this->option('force')) { if (file_exists(app_path("TelegramSession.php")) && !$this->option('force')) {
if (!$this->confirm("The App/TelegramSession model is already exist. Replace it?")) { if (!$this->confirm("The App/TelegramSession model is already exist. Replace it?")) {
$this->info('Multi session export aborted.'); $this->info('Multi session export aborted.');
return; return;