mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
update profile when hostname changes
This commit is contained in:
parent
643417eb1e
commit
758dcfb3c8
@ -132,6 +132,9 @@ func SetNodeConfig(w http.ResponseWriter, r *http.Request) {
|
|||||||
if res := tx.Model(account).Update("account_revision", account.AccountRevision+1).Error; res != nil {
|
if res := tx.Model(account).Update("account_revision", account.AccountRevision+1).Error; res != nil {
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
if res := tx.Model(account).Update("profile_revision", account.ProfileRevision+1).Error; res != nil {
|
||||||
|
return res
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
@ -34,7 +34,7 @@ func SendNotifications() {
|
|||||||
select {
|
select {
|
||||||
case notification := <-notify:
|
case notification := <-notify:
|
||||||
node := getStrConfigValue(CNFDomain, "")
|
node := getStrConfigValue(CNFDomain, "")
|
||||||
if notification.Node == node {
|
if notification.Node == "" || notification.Node == node {
|
||||||
sendLocalNotification(notification)
|
sendLocalNotification(notification)
|
||||||
} else {
|
} else {
|
||||||
sendRemoteNotification(notification)
|
sendRemoteNotification(notification)
|
||||||
|
Loading…
Reference in New Issue
Block a user