mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Remove bug in factory state
This commit is contained in:
parent
5b181ecea7
commit
c8e12ddb5c
|
@ -145,8 +145,6 @@ class AccessoryFactory extends Factory
|
|||
public function checkedOut(User $user = null)
|
||||
{
|
||||
return $this->afterCreating(function (Accessory $accessory) use ($user) {
|
||||
$accessory->decrement('qty');
|
||||
|
||||
$accessory->users()->attach($accessory->id, [
|
||||
'accessory_id' => $accessory->id,
|
||||
'created_at' => Carbon::now(),
|
||||
|
|
Loading…
Reference in a new issue