mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Fixed missing setting call
This is still broken further down the line in the event handler for license checkin, but this gets us closer
This commit is contained in:
parent
d9e7a457d4
commit
1bea83ee5a
|
@ -4,6 +4,7 @@ namespace App\Models;
|
|||
|
||||
use App\Notifications\AuditNotification;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use App\Models\Setting;
|
||||
|
||||
trait Loggable
|
||||
{
|
||||
|
@ -90,6 +91,7 @@ trait Loggable
|
|||
*/
|
||||
public function logCheckin($target, $note, $action_date = null)
|
||||
{
|
||||
$settings = Setting::getSettings();
|
||||
$log = new Actionlog;
|
||||
$log->target_type = get_class($target);
|
||||
$log->target_id = $target->id;
|
||||
|
|
Loading…
Reference in a new issue