Correct error in passing variable through listener

This commit is contained in:
Matt Young 2024-06-16 00:23:55 -05:00
parent a080e35c8b
commit 066043784b
2 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ use Illuminate\Queue\SerializesModels;
class EntryChange
{
use Dispatchable, InteractsWithSockets, SerializesModels;
public bool $auditionId;
public int $auditionId;
/**
* Create a new event instance.
*/

View File

@ -23,10 +23,10 @@ class RefreshEntryCache
/**
* Handle the event.
*/
public function handle(EntryChange $auditionId): void
public function handle(EntryChange $event): void
{
if ($auditionId) {
$this->entryCacheService->clearEntryCacheForAudition($auditionId);
if ($event->auditionId) {
$this->entryCacheService->clearEntryCacheForAudition($event->auditionId);
} else {
$this->entryCacheService->clearEntryCaches();
}