parent
0ae24b22fd
commit
17b5d7f0a3
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue