mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Removed incrementer from non-asset event listeners
This commit is contained in:
parent
f35f8477d3
commit
a5870c888e
|
@ -28,8 +28,7 @@ class AccessoryObserver
|
|||
|
||||
|
||||
/**
|
||||
* Listen to the Accessory created event, and increment
|
||||
* the next_auto_tag_base value in the settings table when i
|
||||
* Listen to the Accessory created event when
|
||||
* a new accessory is created.
|
||||
*
|
||||
* @param Accessory $accessory
|
||||
|
@ -37,9 +36,6 @@ class AccessoryObserver
|
|||
*/
|
||||
public function created(Accessory $accessory)
|
||||
{
|
||||
$settings = Setting::first();
|
||||
$settings->increment('next_auto_tag_base');
|
||||
|
||||
$logAction = new Actionlog();
|
||||
$logAction->item_type = Accessory::class;
|
||||
$logAction->item_id = $accessory->id;
|
||||
|
|
|
@ -28,8 +28,7 @@ class ComponentObserver
|
|||
|
||||
|
||||
/**
|
||||
* Listen to the Component created event, and increment
|
||||
* the next_auto_tag_base value in the settings table when i
|
||||
* Listen to the Component created event when
|
||||
* a new component is created.
|
||||
*
|
||||
* @param Component $component
|
||||
|
@ -37,9 +36,6 @@ class ComponentObserver
|
|||
*/
|
||||
public function created(Component $component)
|
||||
{
|
||||
$settings = Setting::first();
|
||||
$settings->increment('next_auto_tag_base');
|
||||
|
||||
$logAction = new Actionlog();
|
||||
$logAction->item_type = Component::class;
|
||||
$logAction->item_id = $component->id;
|
||||
|
|
|
@ -28,8 +28,7 @@ class ConsumableObserver
|
|||
|
||||
|
||||
/**
|
||||
* Listen to the Consumable created event, and increment
|
||||
* the next_auto_tag_base value in the settings table when i
|
||||
* Listen to the Consumable created event when
|
||||
* a new consumable is created.
|
||||
*
|
||||
* @param Consumable $consumable
|
||||
|
@ -37,8 +36,6 @@ class ConsumableObserver
|
|||
*/
|
||||
public function created(Consumable $consumable)
|
||||
{
|
||||
$settings = Setting::first();
|
||||
$settings->increment('next_auto_tag_base');
|
||||
|
||||
$logAction = new Actionlog();
|
||||
$logAction->item_type = Consumable::class;
|
||||
|
|
|
@ -28,8 +28,7 @@ class LicenseObserver
|
|||
|
||||
|
||||
/**
|
||||
* Listen to the License created event, and increment
|
||||
* the next_auto_tag_base value in the settings table when i
|
||||
* Listen to the License created event when
|
||||
* a new license is created.
|
||||
*
|
||||
* @param License $license
|
||||
|
@ -37,8 +36,6 @@ class LicenseObserver
|
|||
*/
|
||||
public function created(License $license)
|
||||
{
|
||||
$settings = Setting::first();
|
||||
$settings->increment('next_auto_tag_base');
|
||||
|
||||
$logAction = new Actionlog();
|
||||
$logAction->item_type = License::class;
|
||||
|
|
Loading…
Reference in a new issue