use app in hub path

This commit is contained in:
Ruben Fiszel
2022-08-17 11:31:23 +02:00
parent 8b644a6e85
commit 0d0097551d
2 changed files with 2 additions and 2 deletions
@@ -26,7 +26,7 @@
label={`New Postgres SQL query`}
icon={faCode}
iconColor="text-blue-800"
on:click={() => dispatch('pick', { path: 'hub/130/execute_custom_query_postgresql' })}
on:click={() => dispatch('pick', { path: 'hub/130/postgresql/execute_custom_query_postgresql' })}
/>
<FlowScriptPicker
+1 -1
View File
@@ -464,7 +464,7 @@ export async function getScriptByPath(path: string): Promise<{
export async function loadHubScripts() {
const scripts = (await ScriptService.listHubScripts()).asks ?? []
const processed = scripts.map((x) => ({
path: `hub/${x.id}/${x.summary.toLowerCase().replaceAll(/\s+/g, '_')}`,
path: `hub/${x.id}/${x.app}/${x.summary.toLowerCase().replaceAll(/\s+/g, '_')}`,
summary: `${x.summary} (${x.app}) ${x.views} uses`,
approved: x.approved,
is_trigger: x.is_trigger,