diff --git a/Tests/Tests.cs b/Tests/Tests.cs index bb1561c..97d3a5a 100644 --- a/Tests/Tests.cs +++ b/Tests/Tests.cs @@ -75,7 +75,7 @@ static Dictionary AddMany(this IDictionary a, ID var privateIP = docker.Networks.InspectNetworkAsync("bridge").GetAwaiter().GetResult().IPAM.Config[0].Gateway; var connString = new NpgsqlConnectionStringBuilder(postgres.Value.GetConnectionString()); var container = new ContainerBuilder() - .WithImage("metabase/metabase:v0.39.7") + .WithImage("metabase/metabase:v0.40.8") .WithPortBinding(metabasePort, assignRandomHostPort: true) .WithWaitStrategy(Wait.ForUnixContainer().UntilMessageIsLogged("Metabase Initialization COMPLETE")) .WithEnvironment(new Dictionary diff --git a/metabase-exporter/MetabaseApi.cs b/metabase-exporter/MetabaseApi.cs index a8249c6..8f2ea40 100644 --- a/metabase-exporter/MetabaseApi.cs +++ b/metabase-exporter/MetabaseApi.cs @@ -236,7 +236,7 @@ public async Task> GetAllDatabaseIds() var response = await sessionManager.Send(request); try { - var databases = JsonConvert.DeserializeObject(response); + var databases = JsonConvert.DeserializeObject(response)["data"]; return databases.Select(d => new DatabaseId((int) d["id"])).ToList(); } catch (JsonSerializationException e)