add image check to supplier action

This commit is contained in:
spencerrlongg
2025-06-17 18:13:37 -05:00
parent 5da79cd5ca
commit db63ad1cf4
2 changed files with 11 additions and 1 deletions
@@ -21,7 +21,7 @@ class BulkManufacturersController extends Controller
foreach ($ids as $id) {
try {
DestroyManufacturerAction::run(manufacturer: $id);
} catch (ModelStillHasAccessories|ModelStillHasAssetModels|ModelStillHasAssets|ModelStillHasComponents|ModelStillHasConsumables|ModelStillHasLicenses $e) {
} catch (ModelStillHasAccessories|ModelStillHasAssets|ModelStillHasComponents|ModelStillHasConsumables|ModelStillHasLicenses $e) {
$errors[] = `{$id} still has {$id->thing}`;
} catch (\Exception $e) {
report($e);