mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -63,7 +63,7 @@ class Alert extends Model
|
||||
|
||||
public function rule()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Rule', 'rule_id', 'id');
|
||||
return $this->belongsTo('App\Models\AlertRule', 'rule_id', 'id');
|
||||
}
|
||||
|
||||
public function users()
|
||||
|
||||
@@ -85,6 +85,6 @@ class AlertRule extends BaseModel
|
||||
|
||||
public function devices()
|
||||
{
|
||||
return $this->belongsToMany('App\Models\Device', 'alert_device_map', 'device_id', 'device_id', 'devices');
|
||||
return $this->belongsToMany('App\Models\Device', 'alert_device_map', 'device_id', 'device_id');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -594,7 +594,7 @@ class Device extends BaseModel
|
||||
|
||||
public function syslogs()
|
||||
{
|
||||
return $this->hasMany('App\Models\General\Syslog', 'device_id', 'device_id');
|
||||
return $this->hasMany('App\Models\Syslog', 'device_id', 'device_id');
|
||||
}
|
||||
|
||||
public function users()
|
||||
|
||||
Reference in New Issue
Block a user