diff --git a/src/helpers/index.ts b/src/helpers/index.ts index f1e66b1..8aad196 100644 --- a/src/helpers/index.ts +++ b/src/helpers/index.ts @@ -46,11 +46,12 @@ export async function getTenantProperty( "Content-Type": "application/json", }; + let url = `${channelAutomationAPI.host}/tenant-properties-service/${channelAutomationAPI.tenant}/properties?fields=name,value`; + + if (key) url += `&q=${key}`; + return await axios - .get( - `${channelAutomationAPI.host}/tenant-properties-service/${channelAutomationAPI.tenant}/properties?fields=name,value,lastModifiedDate,lastModifiedBy?&q=${key}`, - { headers }, - ) + .get(url, { headers }) .then((response: { data: HydraCollection }) => { const totalItems = response.data["hydra:totalItems"]; console.debug("tps result has hydra:totalItems [" + totalItems + "]"); diff --git a/src/views/HomePage.vue b/src/views/HomePage.vue index f50e1de..69bf2d7 100644 --- a/src/views/HomePage.vue +++ b/src/views/HomePage.vue @@ -7,7 +7,7 @@