Vue Polling - Rename some files

This commit is contained in:
Dillon Ngo
2023-12-19 19:54:31 +08:00
parent 5fd242b424
commit dba09a122f
7 changed files with 10 additions and 11 deletions
@@ -12,7 +12,7 @@ use Illuminate\Queue\SerializesModels;
use App\Models\JobResult;
use Illuminate\Support\Facades\Log;
class ListBookings implements ShouldQueue
class ListBookingsJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
@@ -22,7 +22,7 @@ class ListBookings implements ShouldQueue
private $jobId;
/**
* ListBookings constructor.
* ListBookingsJob constructor.
* @param ListGenericJobObject $listGenericJobObject
*/
public function __construct(ListGenericJobObject $listGenericJobObject)
@@ -12,7 +12,7 @@ use Illuminate\Queue\SerializesModels;
use App\Models\JobResult;
use Illuminate\Support\Facades\Log;
class ListDocuments implements ShouldQueue
class ListDocumentsJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
@@ -12,7 +12,7 @@ use Illuminate\Queue\SerializesModels;
use App\Models\JobResult;
use Illuminate\Support\Facades\Log;
class ListTransactions implements ShouldQueue
class ListTransactionsJob implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
@@ -4,7 +4,7 @@
namespace App\Classes\Modules\Bookings\ControllersLogic;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Jobs\ListBookings;
use App\Classes\Jobs\ListBookingsJob;
use App\Classes\Modules\Bookings\Standards\Rules\CanListBookings;
use App\Classes\Modules\Generic\DataTransferObjects\ListGenericJobObject;
use ErrorException;
@@ -45,7 +45,7 @@ class ListBookingJobLogic extends AbstractControllerLogic
$userInfo
);
ListBookings::dispatch($listGenericJobObject);
ListBookingsJob::dispatch($listGenericJobObject);
$result = [];
$result['job_id'] = $jobId;
@@ -6,7 +6,7 @@ namespace App\Classes\Modules\Documents\ControllersLogic;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Modules\Documents\Services\ListsDocuments;
use App\Classes\Modules\Generic\DataTransferObjects\ListGenericJobObject;
use App\Classes\Jobs\ListDocuments;
use App\Classes\Jobs\ListDocumentsJob;
use App\Http\Resources\DocumentResource;
use ErrorException;
use Illuminate\Http\JsonResponse;
@@ -50,7 +50,7 @@ class ListDocumentJobLogic extends AbstractControllerLogic
$userInfo
);
ListDocuments::dispatch($listGenericJobObject);
ListDocumentsJob::dispatch($listGenericJobObject);
//cief todo: remove comments
// // Create your job instance with delay, so we can back here within delay and take control in our hands.
@@ -4,7 +4,7 @@
namespace App\Classes\Modules\Transactions\ControllersLogic;
use App\Classes\General\Abstracts\AbstractControllerLogic;
use App\Classes\Jobs\ListTransactions;
use App\Classes\Jobs\ListTransactionsJob;
use App\Classes\Modules\Generic\DataTransferObjects\ListGenericJobObject;
use ErrorException;
use Illuminate\Http\JsonResponse;
@@ -36,7 +36,7 @@ class ListTransactionsJobLogic extends AbstractControllerLogic
$jobId
);
ListTransactions::dispatch($listGenericJobObject);
ListTransactionsJob::dispatch($listGenericJobObject);
$result = [];
$result['job_id'] = $jobId;
@@ -5,7 +5,6 @@ namespace App\Http\Controllers\Documents;
use App\Classes\Modules\Documents\ControllersLogic\ListDocumentJobLogic;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;
use App\Classes\Jobs\ListDocuments;
class ListDocumentsJobController
{