mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Closure wasn’t working, go traditional
This commit is contained in:
parent
25b8c4438e
commit
0058f02e82
|
@ -70,13 +70,16 @@ class MigrateDenormedAssetLocations extends Migration
|
|||
\Log::info('Asset: '.$unassigned_asset->id.' still has no location');
|
||||
}
|
||||
|
||||
Asset::get()->each(function ($asset) {
|
||||
$assets = Asset::get();
|
||||
|
||||
foreach ($assets as $asset) {
|
||||
if (($asset) && ($asset->location_id != $asset->assetLoc()->id)) {
|
||||
\Log::info('MISMATCH MISMATCH '.$asset->id. "doesn't match its location");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
die();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue