Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Oct 4, 2024
1 parent 371619c commit 795fba3
Show file tree
Hide file tree
Showing 3 changed files with 777 additions and 787 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,17 @@ protected function getViewData(): array

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();
}
}
}
4 changes: 2 additions & 2 deletions web/Modules/Microweber/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
Loading

0 comments on commit 795fba3

Please sign in to comment.