fix: initialize enterprise database before hooks (#13247)

This commit is contained in:
ssongliu
2026-07-10 18:31:04 +08:00
committed by GitHub
parent 3d7f0f5143
commit 8be2a9ab02
2 changed files with 6 additions and 2 deletions
+4 -1
View File
@@ -2,5 +2,8 @@
package server
func InitOthers() {
func InitOthersBeforeHook() {
}
func InitOthersAfterHook() {
}
+2 -1
View File
@@ -46,8 +46,9 @@ func Start() {
gob.Register(psession.SessionUser{})
cron.Init()
session.Init()
InitOthersBeforeHook()
hook.Init()
InitOthers()
InitOthersAfterHook()
proxy.Init()