Skip to content

Commit

Permalink
fix ThirdPartyJob InvalidArgumentException
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Nov 21, 2024
1 parent 28fdeb6 commit e24b237
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Utils/ThirdPartyJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Utils;

use App\Jobs\BuyTorrent;
use http\Exception\InvalidArgumentException;
use Illuminate\Support\Facades\Queue;
use Nexus\Database\NexusDB;
use Nexus\Database\NexusLock;
Expand Down Expand Up @@ -31,7 +30,7 @@ public function __invoke(): void
$successCount++;
match ($data['name']) {
self::JOB_BUY_TORRENT => self::enqueueJobBuyTorrent($data),
default => throw new InvalidArgumentException("invalid name: {$data['name']}")
default => throw new \InvalidArgumentException("invalid name: {$data['name']}")
};
} else {
do_log(sprintf("%s no name, skip", $item), "error");
Expand Down

0 comments on commit e24b237

Please sign in to comment.