Skip to content

Commit

Permalink
Update DatastoreRunCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
inmanturbo authored Jun 21, 2024
1 parent 18510d2 commit cb1ab5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/one-app/app/Console/Commands/DatastoreRunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public function handle(): int
return 1;
}

$datastore->database()->run($artisanCommandCallback)->disconnect();
$datastore->configure()->use()->database()->run($artisanCommandCallback)->disconnect();
} else {
Datastore::all()->each(function ($datastore) use ($artisanCommandCallback) {
$datastore->database()->run($artisanCommandCallback)->disconnect();
$datastore->configure()->use()->database()->run($artisanCommandCallback)->disconnect();
});
}

Expand Down

0 comments on commit cb1ab5a

Please sign in to comment.