fix for updating fields

pull/805/head
hunterlong 2020-08-25 15:44:40 -07:00
parent 13878e5a8f
commit 136831e70d
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ func (n *Notification) Create() error {
}
func (n *Notification) UpdateFields(notif *Notification) *Notification {
if notif == nil {
return n
}
n.Id = notif.Id
n.Limits = notif.Limits
n.Enabled = notif.Enabled