Be sure to clear cache's after making a doubler decision
This commit is contained in:
parent
fd07254e3e
commit
005160097b
|
|
@ -41,8 +41,11 @@ class DoublerDecision
|
|||
|
||||
}
|
||||
|
||||
public function accept($entry): void
|
||||
public function accept(Entry $entry): void
|
||||
{
|
||||
Cache::forget('audition'.$entry->audition_id.'seating');
|
||||
Cache::forget('audition'.$entry->audition_id.'advancement');
|
||||
|
||||
// Decline all other entries and clear rank cache
|
||||
$doublerInfo = $this->doublerService->simpleDoubleInfo($entry);
|
||||
foreach ($doublerInfo as $doublerEntry) {
|
||||
|
|
@ -59,6 +62,8 @@ class DoublerDecision
|
|||
*/
|
||||
public function decline($entry): void
|
||||
{
|
||||
Cache::forget('audition'.$entry->audition_id.'seating');
|
||||
Cache::forget('audition'.$entry->audition_id.'advancement');
|
||||
if ($entry->hasFlag('declined')) {
|
||||
throw new AuditionAdminException('Entry is already declined');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue