Files
api-extranetwork/app/Jobs/PropertyReviewServiceJob.php
ExtraNetwork e5c4b6aa13 first commit
2026-05-12 17:04:54 +03:00

36 lines
737 B
PHP

<?php
namespace App\Jobs;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Support\Facades\Artisan;
class PropertyReviewServiceJob implements ShouldQueue
{
use InteractsWithQueue;
protected $propertyId;
protected $channelId;
/**
* Create a new job instance.
*/
public function __construct($propertyId, $channelId)
{
$this->propertyId = $propertyId;
$this->channelId = $channelId;
}
/**
* Execute the job.
*/
public function handle()
{
Artisan::call('cron:property-review-service', [
'property_id' => $this->propertyId,
'channel_id' => $this->channelId
]);
}
}