Skip to content

Commit

Permalink
Merge pull request #29 from envor/main
Browse files Browse the repository at this point in the history
configure and use datastore in datastore run command
  • Loading branch information
inmanturbo authored Jun 21, 2024
2 parents 2b90463 + cb1ab5a commit b09af75
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

All notable changes to `one-app` will be documented in this file.

## v1.0.22 - 2024-06-20

### What's Changed

* allow fallback to 'datastore_context' key in container by @inmanturbo in https://github.com/envor/one-app/pull/28

**Full Changelog**: https://github.com/envor/one-app/compare/v1.0.21...v1.0.22

## v1.0.21 - 2024-06-20

### What's Changed
Expand Down
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 b09af75

Please sign in to comment.