Skip to content

A free open source IT asset/license management system

Update array keys to set asset location properly

Marcus Mooreef27c35d1d95
diff --git a/database/factories/ActionlogFactory.php b/database/factories/ActionlogFactory.php
index 33cc83ead4..382a6412c2 100644
--- a/database/factories/ActionlogFactory.php
+++ b/database/factories/ActionlogFactory.php
@@ -55,7 +55,7 @@ class ActionlogFactory extends Factory
[
'assigned_to' => $target->id,
'assigned_type' => \App\Models\User::class,
- 'assigned_to' => $target->location_id,
+ 'location_id' => $target->location_id,
]
);
@@ -84,7 +84,7 @@ class ActionlogFactory extends Factory
[
'assigned_to' => $target->id,
'assigned_type' => \App\Models\Location::class,
- 'assigned_to' => $target->id,
+ 'location_id' => $target->id,
]
);