Skip to content

Commit

Permalink
Fixing invalid file checker for existing TelegramSession model
Browse files Browse the repository at this point in the history
  • Loading branch information
setiawanhu committed Aug 13, 2020
1 parent 0b2840f commit 84c85b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/MultiSessionCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function handle()
if ($this->option('model')) {
$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?")) {
$this->info('Multi session export aborted.');
return;
Expand Down

0 comments on commit 84c85b8

Please sign in to comment.