mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #12713 from rainzm/notify/mod_init
fix: adjust the initialization order of init function contents
This commit is contained in:
@@ -99,9 +99,3 @@ func (manager *NotificationManager) Send(s *mcclient.ClientSession, msg SNotifyM
|
||||
_, err := manager.Create(s, params)
|
||||
return err
|
||||
}
|
||||
|
||||
func init() {
|
||||
Notifications = NotificationManager{
|
||||
Notification,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,4 +90,9 @@ func init() {
|
||||
[]string{},
|
||||
)
|
||||
modules.Register(&NotifySubscriber)
|
||||
|
||||
// important: Notifications' init must be behind Notication's init
|
||||
Notifications = NotificationManager{
|
||||
Notification,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user