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:
snipe 2020-09-04 15:44:37 -07:00
parent d9e7a457d4
commit 1bea83ee5a
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC

View file

@ -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;