Skip to content

Commit

Permalink
Add audit log for family_requests table
Browse files Browse the repository at this point in the history
To see if it was activated/cancelled by user or admin.

remp/crm#3295
  • Loading branch information
markoph committed Sep 4, 2024
1 parent 7986148 commit bd7fbc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Repositories/FamilyRequestsRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Crm\FamilyModule\Repositories;

use Crm\ApplicationModule\Models\Database\Repository;
use Crm\ApplicationModule\Repositories\AuditLogRepository;
use Crm\FamilyModule\Events\FamilyRequestCreatedEvent;
use League\Event\Emitter;
use Nette\Caching\Storage;
Expand All @@ -21,11 +22,13 @@ class FamilyRequestsRepository extends Repository
protected $tableName = 'family_requests';

public function __construct(
AuditLogRepository $auditLogRepository,
Explorer $database,
Storage $cacheStorage = null,
private Emitter $emitter
private Emitter $emitter,
) {
parent::__construct($database, $cacheStorage);
$this->auditLogRepository = $auditLogRepository;
}

public function add(
Expand Down

0 comments on commit bd7fbc4

Please sign in to comment.