diff --git a/modules/pack/module.go b/modules/pack/module.go index e4b58e669..43847c076 100644 --- a/modules/pack/module.go +++ b/modules/pack/module.go @@ -41,8 +41,8 @@ func (this *Pack) Init(service core.IService, module core.IModule, options core. func (this *Pack) OnInstallComp() { this.ModuleBase.OnInstallComp() this.api_comp = this.RegisterComp(new(Api_Comp)).(*Api_Comp) - this.cache_comp = this.RegisterComp(new(Api_Comp)).(*Cache_Comp) - this.db_comp = this.RegisterComp(new(Api_Comp)).(*DB_Comp) + this.cache_comp = this.RegisterComp(new(Cache_Comp)).(*Cache_Comp) + this.db_comp = this.RegisterComp(new(DB_Comp)).(*DB_Comp) this.configure_comp = this.RegisterComp(new(Configure_Comp)).(*Configure_Comp) }