From cb1ab5ab8f1d852df4ba8c280623aab134aae0b9 Mon Sep 17 00:00:00 2001 From: inmanturbo <47095624+inmanturbo@users.noreply.github.com> Date: Fri, 21 Jun 2024 17:35:47 -0400 Subject: [PATCH] Update DatastoreRunCommand.php --- stubs/one-app/app/Console/Commands/DatastoreRunCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stubs/one-app/app/Console/Commands/DatastoreRunCommand.php b/stubs/one-app/app/Console/Commands/DatastoreRunCommand.php index be5f0c9..5ff4db2 100644 --- a/stubs/one-app/app/Console/Commands/DatastoreRunCommand.php +++ b/stubs/one-app/app/Console/Commands/DatastoreRunCommand.php @@ -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(); }); }