Correct error in passing variable through listener
This commit is contained in:
parent
a080e35c8b
commit
066043784b
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue