fix(ai-jobs): add Dispatchable trait for dispatchSync static calls
This commit is contained in:
@@ -11,11 +11,12 @@ use App\Blog\Support\WorkermanBroadcaster;
|
||||
use App\Models\Comment;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class AiModerateCommentJob implements AiJob, ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
use Dispatchable, Queueable;
|
||||
|
||||
public function __construct(public int $commentId)
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@ namespace Plugins\Neatstudio\AiModeration\Jobs;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Foundation\Bus\Dispatchable;
|
||||
|
||||
use App\Blog\Jobs\AiJob;
|
||||
use App\Blog\Services\LlmClient;
|
||||
@@ -14,7 +15,7 @@ use App\Models\Post;
|
||||
|
||||
class AiPolishContentJob implements AiJob, ShouldQueue
|
||||
{
|
||||
use Queueable;
|
||||
use Dispatchable, Queueable;
|
||||
|
||||
public function __construct(public int $postId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user