fix(ai-jobs): add Dispatchable trait for dispatchSync static calls
Build and Deploy / verify (push) Successful in 11s
Build and Deploy / deploy (push) Successful in 17s

This commit is contained in:
2026-10-15 00:08:28 +00:00
parent 2e052498a5
commit d2e24522be
2 changed files with 4 additions and 2 deletions
@@ -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)
{