mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-18 19:06:45 +02:00
Fix exception thrown when deleting TwoFAccount without icon
This commit is contained in:
parent
b6a0e5055c
commit
de4422c795
@ -26,7 +26,7 @@ class CleanIconStorage
|
|||||||
*/
|
*/
|
||||||
public function handle(TwoFAccountDeleted $event)
|
public function handle(TwoFAccountDeleted $event)
|
||||||
{
|
{
|
||||||
Storage::disk('icons')->delete($event->twofaccount->icon);
|
Storage::disk('icons')->delete($event->twofaccount->icon ?? []);
|
||||||
Log::info(sprintf('Icon cleaned for deleted TwoFAccount #%d', $event->twofaccount->id));
|
Log::info(sprintf('Icon cleaned for deleted TwoFAccount #%d', $event->twofaccount->id));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user