mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Slightly nicer formatting for query
This commit is contained in:
parent
ea68ff1284
commit
7d708572fc
|
@ -57,7 +57,9 @@ class FixMismatchedAssetsAndLogs extends Command
|
||||||
}
|
}
|
||||||
|
|
||||||
$mismatch_count = 0;
|
$mismatch_count = 0;
|
||||||
$assets = Asset::whereNotNull('assigned_to')->where('assigned_type', '=', 'App\\Models\\User')->get();
|
$assets = Asset::whereNotNull('assigned_to')
|
||||||
|
->where('assigned_type', '=', 'App\\Models\\User')
|
||||||
|
->orderBy('id', 'ASC')->get();
|
||||||
foreach ($assets as $asset) {
|
foreach ($assets as $asset) {
|
||||||
|
|
||||||
// get the last checkout of the asset
|
// get the last checkout of the asset
|
||||||
|
|
Loading…
Reference in a new issue