Fixes for single account creation

This commit is contained in:
David Bomba 2022-12-01 12:50:03 +11:00
parent c085845da1
commit 6a3b447395

View File

@ -611,7 +611,6 @@ class CreateSingleAccount extends Command
$cached_tables = config('ninja.cached_tables'); $cached_tables = config('ninja.cached_tables');
foreach ($cached_tables as $name => $class) { foreach ($cached_tables as $name => $class) {
if (! Cache::has($name)) {
// check that the table exists in case the migration is pending // check that the table exists in case the migration is pending
if (! Schema::hasTable((new $class())->getTable())) { if (! Schema::hasTable((new $class())->getTable())) {
continue; continue;
@ -629,7 +628,6 @@ class CreateSingleAccount extends Command
if ($tableData->count()) { if ($tableData->count()) {
Cache::forever($name, $tableData); Cache::forever($name, $tableData);
} }
}
} }
} }