fix issue in gins.Database

This commit is contained in:
john
2020-07-15 19:17:42 +08:00
parent 183f631190
commit 605181da32

View File

@ -41,7 +41,7 @@ func Database(name ...string) gdb.DB {
}
var m map[string]interface{}
// It firstly searches the configuration of the instance name.
nodeKey, _ := gutil.MapPossibleItemByKey(Config().GetMap("."), gVIEWER_NODE_NAME)
nodeKey, _ := gutil.MapPossibleItemByKey(Config().GetMap("."), gDATABASE_NODE_NAME)
if nodeKey == "" {
nodeKey = gDATABASE_NODE_NAME
}