FIX: Metabase URL

This commit is contained in:
Victor Radael
2022-04-29 20:53:17 -03:00
parent 7d371926f5
commit 0164e6978a
2 changed files with 18 additions and 9220 deletions
+13 -9217
View File
File diff suppressed because it is too large Load Diff
+5 -3
View File
@@ -46,6 +46,7 @@ class CatalogService {
const { data } = await axios.get(
`${nimbusUrl}/api/catalog/data_apps/${id}/`,
);
return data;
}
@@ -80,10 +81,11 @@ class CatalogService {
const { data } = await axios.get(
`${nimbusUrl}/api/catalog/dashboard-metabase/${id}`,
);
console.log(data);
const [, path] = data.iframe_url.split('.dadosfera');
const host = `httpss://metabase-${body.info.customer.toLowerCase()}.dadosfera.ai`;
data.iframe_url = host + path;
// const [, path] = data.iframe_url.split('.dadosfera');
// const host = `httpss://metabase-${body.info.customer.toLowerCase()}.dadosfera.ai`;
// data.iframe_url = host + path;
return data;
}