36 lines
737 B
PHP
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
|
|
]);
|
|
}
|
|
}
|