Files
CRM/app/Jobs/AuditLog/LogAccountAudit.php
Kroonk a213a1dba0
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
refactor: replace custom CRM with Monica fork
2026-05-22 16:19:55 +02:00

45 lines
887 B
PHP

<?php
namespace App\Jobs\AuditLog;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use App\Services\Instance\AuditLog\LogAccountAction;
class LogAccountAudit implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* The audit log instance.
*
* @var array
*/
public $auditLog;
/**
* Create a new job instance.
*
* @param array $auditLog
*/
public function __construct(array $auditLog)
{
$this->auditLog = $auditLog;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
app(LogAccountAction::class)->execute(
$this->auditLog
);
}
}