mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Learned that I should not refer to env vars directly so I removed all references.
This commit is contained in:
@@ -107,7 +107,7 @@ class Range
|
||||
*/
|
||||
private function loseItAll(Request $request): void
|
||||
{
|
||||
if ('sqlite' === getenv('DB_CONNECTION') && true === getenv('IS_DOCKER')) {
|
||||
if ('sqlite' === config('database.default') && true === config('firefly.is_docker')) {
|
||||
// @codeCoverageIgnoreStart
|
||||
$request->session()->flash(
|
||||
'error', 'You seem to be using SQLite in a Docker container. Don\'t do this. If the container restarts all your data will be gone.'
|
||||
|
Reference in New Issue
Block a user