Event identifiers for anonymizations

This commit is contained in:
2026-03-22 00:14:00 +01:00
parent 405591d6dd
commit 37039f082c
6 changed files with 12 additions and 3 deletions

View File

@@ -33,6 +33,11 @@ class EventRepository {
return $events[0] ?? null;
}
public function getByIdentifier(string $identifier, bool $accessCheck = true) : ?Event {
$events = self::getEventsByCriteria(['identifier' => $identifier], $accessCheck);
return $events[0] ?? null;
}
public function getEventsByCriteria(array $criteria, $accessCheck = true) : array {
$tenant = app('tenant');