mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 19:10:40 +00:00
updates automatically handled on the background
This commit is contained in:
@@ -5,13 +5,14 @@ use Illuminate\Console\Scheduling\Schedule;
|
||||
use App\Console\Commands\SetupDevEnvironment;
|
||||
use App\Console\Commands\SetupProdEnvironment;
|
||||
use Support\Scheduler\Actions\ReportUsageAction;
|
||||
use Support\Demo\Actions\DeleteAllSharedLinksAction;
|
||||
use Support\Demo\Actions\DeleteAllDemoSharedLinksAction;
|
||||
use Support\Scheduler\Actions\DeleteFailedFilesAction;
|
||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||
use Support\Scheduler\Actions\DeleteUnverifiedUsersAction;
|
||||
use Support\Scheduler\Actions\DeleteExpiredShareLinksAction;
|
||||
use App\Console\Commands\GenerateDemoSubscriptionContentCommand;
|
||||
use Support\Scheduler\Actions\ExpireUnfilledUploadRequestAction;
|
||||
use Support\Upgrading\Actions\UpdateSystemAction;
|
||||
|
||||
class Kernel extends ConsoleKernel
|
||||
{
|
||||
@@ -42,7 +43,7 @@ class Kernel extends ConsoleKernel
|
||||
|
||||
if (is_demo()) {
|
||||
$schedule->call(
|
||||
fn () => resolve(DeleteAllSharedLinksAction::class)()
|
||||
fn () => resolve(DeleteAllDemoSharedLinksAction::class)()
|
||||
)->daily()->at('00:00');
|
||||
}
|
||||
|
||||
@@ -54,6 +55,10 @@ class Kernel extends ConsoleKernel
|
||||
fn () => resolve(ExpireUnfilledUploadRequestAction::class)()
|
||||
)->hourly();
|
||||
|
||||
$schedule->call(
|
||||
fn () => resolve(UpdateSystemAction::class)()
|
||||
)->everyMinute();
|
||||
|
||||
$schedule->call(
|
||||
fn () => resolve(DeleteUnverifiedUsersAction::class)()
|
||||
)->daily()->at('00:05');
|
||||
|
||||
@@ -36,9 +36,9 @@ class UserResource extends JsonResource
|
||||
'avatar' => $this->settings->avatar,
|
||||
'email' => is_demo() ? obfuscate_email($this->email) : $this->email,
|
||||
'role' => $this->role,
|
||||
'two_factor_authentication' => (bool)$this->two_factor_secret,
|
||||
'two_factor_authentication' => (bool) $this->two_factor_secret,
|
||||
'two_factor_confirmed_at' => $this->two_factor_confirmed_at,
|
||||
'socialite_account' => !(bool)$this->password,
|
||||
'socialite_account' => ! (bool) $this->password,
|
||||
'storage' => $this->storage,
|
||||
'created_at' => format_date($this->created_at, 'd. M. Y'),
|
||||
'updated_at' => format_date($this->updated_at, 'd. M. Y'),
|
||||
|
||||
Reference in New Issue
Block a user