1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-04-21 23:42:10 +02:00

Properly list jobs of the import queue

This commit is contained in:
Kovah 2025-01-30 13:18:24 +01:00
parent 7f3ec8d296
commit 6cc05c1cb5

View File

@ -22,13 +22,8 @@ class ImportController extends Controller
public function queue(): View
{
$jobs = DB::table('jobs')
->where('payload', 'LIKE', '%"displayName":' . json_encode(ImportLinkJob::class) . '%')
->paginate(50);
$failedJobs = DB::table('failed_jobs')
->where('payload', 'LIKE', '%"displayName":' . json_encode(ImportLinkJob::class) . '%')
->paginate(50);
$jobs = DB::table('jobs')->where('queue', 'import')->paginate(50);
$failedJobs = DB::table('failed_jobs')->where('queue', 'import')->paginate(50);
return view('app.import.queue', [
'pageTitle' => trans('import.import'),