1
0
mirror of https://github.com/tiny-craft/tiny-rdm.git synced 2025-05-17 03:08:04 +08:00

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

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