Skip to content

A free open source IT asset/license management system

Use the proper ID for status ID factory

snipe3a1e2a56d675
diff --git a/database/factories/AssetFactory.php b/database/factories/AssetFactory.php
index 6f30197285..cdc5e29d96 100644
--- a/database/factories/AssetFactory.php
+++ b/database/factories/AssetFactory.php
@@ -41,7 +41,7 @@ class AssetFactory extends Factory
'name' => null,
'rtd_location_id' => Location::factory()->create(),
'serial' => $this->faker->uuid,
- 'status_id' => StatusLabel::factory()->create(),
+ 'status_id' => StatusLabel::factory()->create()->id,
'user_id' => 1,
'asset_tag' => $this->faker->unixTime('now'),
'notes' => 'Created by DB seeder',