correct column name

This commit is contained in:
Godfrey M 2024-03-16 19:54:48 -07:00
parent 595dad0f18
commit 05a8d3030b

View file

@ -393,7 +393,7 @@ class LdapSync extends Command
} }
$assets = Asset::whereColumn('assigned_to', '=', $user->id)->get(); $assets = Asset::whereColumn('assigned_to', '=', $user->id)->get();
foreach($assets as $asset){ foreach($assets as $asset){
$asset->location = $user->location_id; $asset->location_id = $user->location_id;
} }
$user->ldap_import = 1; $user->ldap_import = 1;