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 {
|
||||
return res
|
||||
}
|
||||
if res := tx.Model(account).Update("profile_revision", account.ProfileRevision+1).Error; res != nil {
|
||||
return res
|
||||
}
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
@ -34,7 +34,7 @@ func SendNotifications() {
|
||||
select {
|
||||
case notification := <-notify:
|
||||
node := getStrConfigValue(CNFDomain, "")
|
||||
if notification.Node == node {
|
||||
if notification.Node == "" || notification.Node == node {
|
||||
sendLocalNotification(notification)
|
||||
} else {
|
||||
sendRemoteNotification(notification)
|
||||
|
Loading…
Reference in New Issue
Block a user