fix: retrieved database count does not match

This commit is contained in:
tiny-craft 2023-10-09 00:53:08 +08:00
parent ab2056ba3e
commit 97f6ded7e0
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ func (c *connectionService) OpenConnection(name string) (resp types.JSResp) {
selConn := c.conns.GetConnection(name) selConn := c.conns.GetConnection(name)
totaldb := 16 totaldb := 16
if selConn.DBFilterType == "none" { if selConn.DBFilterType == "" || selConn.DBFilterType == "none" {
// get total databases // get total databases
if config, err := rdb.ConfigGet(ctx, "databases").Result(); err == nil { if config, err := rdb.ConfigGet(ctx, "databases").Result(); err == nil {
if total, err := strconv.Atoi(config["databases"]); err == nil { if total, err := strconv.Atoi(config["databases"]); err == nil {