Pārlūkot izejas kodu

wip: fix DefaultSettingService.php

3.x
wallo 2 gadus atpakaļ
vecāks
revīzija
06dfe6e391
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2
    2
      app/Services/DefaultSettingService.php

+ 2
- 2
app/Services/DefaultSettingService.php Parādīt failu

@@ -31,8 +31,8 @@ class DefaultSettingService
31 31
             'purchase_tax_id' => $purchaseTax->id,
32 32
             'sales_discount_id' => $salesDiscount->id,
33 33
             'purchase_discount_id' => $purchaseDiscount->id,
34
-            'created_by' => $company->owner->id,
35
-            'updated_by' => $company->owner->id,
34
+            'created_by' => Auth::id(),
35
+            'updated_by' => Auth::id(),
36 36
         ];
37 37
 
38 38
         DefaultSetting::create($defaultSettings);

Notiek ielāde…
Atcelt
Saglabāt