This commit is contained in:
Bozhidar 2024-10-04 14:19:37 +03:00
parent 371619c6d3
commit 795fba3715
3 changed files with 779 additions and 789 deletions

View file

@ -70,7 +70,17 @@ class Version extends Page
public function checkForUpdates()
{
DownloadMicroweber::dispatch();
$findJob = DB::table('jobs')->where('payload', 'like', '%DownloadMicroweber%')->get();
if ($findJob->count() > 0) {
foreach ($findJob as $job) {
DB::table('jobs')->where('id', $job->id)->delete();
}
}
$debug = 1;
if ($debug) {
$dm = new DownloadMicroweber();
$dm->handle();
}
}
}

View file

@ -8,8 +8,8 @@
}
],
"require": {
"microweber-packages/composer-client": "^1.9",
"microweber-packages/shared-server-scripts": "dev-main"
"microweber-packages/composer-client": "^2.1",
"microweber-packages/shared-server-scripts": "^0.8"
},
"extra": {
"laravel": {

1552
web/composer.lock generated

File diff suppressed because it is too large Load diff