Skip to content

Commit

Permalink
feat: Updated app/Jobs/DispatchMatchkitsJob.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Mar 12, 2024
1 parent 4af46e9 commit 76a8edd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Jobs/DispatchMatchkitsJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
namespace App\Jobs;

use Illuminate\Foundation\Bus\Dispatchable;
use LiburuGenealogy\PhpDna\Matchkits;
use App\Facades\MatchKitsFacade as Matchkits;

class DispatchMatchkitsJob
{
Expand All @@ -17,9 +17,8 @@ class DispatchMatchkitsJob
public function handle()
{
try {
$matchkits = new Matchkits();
// Assuming the matchkits class has a method named 'process' for demonstration purposes
$matchkits->process();
Matchkits::process();
} catch (\Exception $e) {
// Handle the exception appropriately
// This could involve logging the error or dispatching a job to handle the failure scenario
Expand Down

0 comments on commit 76a8edd

Please sign in to comment.