From 75100bc59bf0820b6c472ceebbc9b7f133a42325 Mon Sep 17 00:00:00 2001 From: Mauricio Scheffer Date: Sun, 5 May 2024 10:48:55 +0100 Subject: [PATCH] Bump test Metabase to 0.40.8 --- Tests/Tests.cs | 2 +- metabase-exporter/MetabaseApi.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)