diff --git a/modules/whackamole/model.go b/modules/whackamole/model.go index a3110806c..b3c2478e4 100644 --- a/modules/whackamole/model.go +++ b/modules/whackamole/model.go @@ -20,6 +20,7 @@ type modelComp struct { func (this *modelComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { err = this.MCompModel.Init(service, module, comp, options) + this.module = module.(*Whackamole) this.TableName = comm.TableWhackamole this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{ Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},