mirror of https://github.com/statping/statping
fix for updating fields
parent
13878e5a8f
commit
136831e70d
|
@ -56,6 +56,9 @@ func (n *Notification) Create() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *Notification) UpdateFields(notif *Notification) *Notification {
|
func (n *Notification) UpdateFields(notif *Notification) *Notification {
|
||||||
|
if notif == nil {
|
||||||
|
return n
|
||||||
|
}
|
||||||
n.Id = notif.Id
|
n.Id = notif.Id
|
||||||
n.Limits = notif.Limits
|
n.Limits = notif.Limits
|
||||||
n.Enabled = notif.Enabled
|
n.Enabled = notif.Enabled
|
||||||
|
|
Loading…
Reference in New Issue