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
|
class EntryChange
|
||||||
{
|
{
|
||||||
use Dispatchable, InteractsWithSockets, SerializesModels;
|
use Dispatchable, InteractsWithSockets, SerializesModels;
|
||||||
public bool $auditionId;
|
public int $auditionId;
|
||||||
/**
|
/**
|
||||||
* Create a new event instance.
|
* Create a new event instance.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -23,10 +23,10 @@ class RefreshEntryCache
|
||||||
/**
|
/**
|
||||||
* Handle the event.
|
* Handle the event.
|
||||||
*/
|
*/
|
||||||
public function handle(EntryChange $auditionId): void
|
public function handle(EntryChange $event): void
|
||||||
{
|
{
|
||||||
if ($auditionId) {
|
if ($event->auditionId) {
|
||||||
$this->entryCacheService->clearEntryCacheForAudition($auditionId);
|
$this->entryCacheService->clearEntryCacheForAudition($event->auditionId);
|
||||||
} else {
|
} else {
|
||||||
$this->entryCacheService->clearEntryCaches();
|
$this->entryCacheService->clearEntryCaches();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue