From f489539d7cc12f6dbf6f67167069cead2a35309c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Bethmont?= Date: Tue, 4 Mar 2025 21:17:32 +0700 Subject: [PATCH] Fix database switching --- pkg/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/api.go b/pkg/api/api.go index 5e4d1c2f0..e66d5738e 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -249,7 +249,7 @@ func SwitchDb(c *gin.Context) { badRequest(c, errInvalidConnString) return } - currentURL.Path = name + currentURL.Path = "/" + name cl, err := client.NewFromUrl(currentURL.String(), nil) if err != nil {