Skip to content

Commit

Permalink
Fix error list artifact from group with multiple users inside org
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusefendi52 committed Dec 4, 2024
1 parent dfa7d3d commit 9eff788
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions pages/install/[publicId]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ const { data, status, error } = useFetch('/api/install/get-data', {
})
const artifacts = computed(() => data.value?.artifacts.map(e => e.artifacts!))
useSeoMeta({
title: `DistApp - ${data.value?.app.name ?? ''}`,
const title = computed(() => data.value?.app.displayName ? `Install ${data.value?.app.displayName ?? ''} - DistApp` : `DistApp`)
useHead({
title: title,
})
const { download, isDownloading } = useDownloadArtifact(appName.toString(), orgName.toString())
Expand Down
2 changes: 0 additions & 2 deletions server/utils/getArtifactGroupFromPublicIdOrUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ export const getArtifactGroupFromPublicIdOrUser = async (event: H3Event<EventHan
artifactsGroups: getTableColumns(tables.artifactsGroups),
apps: getTableColumns(tables.apps),
organizations: getTableColumns(tables.organizations),
organizationsPeople: getTableColumns(tables.organizationsPeople),
})
.from(tables.artifactsGroups)
.leftJoin(tables.apps, eq(tables.apps.id, tables.artifactsGroups.appsId))
.leftJoin(tables.organizations, eq(tables.organizations.id, tables.apps.organizationsId))
.leftJoin(tables.organizationsPeople, eq(tables.organizationsPeople.organizationId, tables.organizations.id))
.leftJoin(tables.groupTester, eq(tables.groupTester.artifactGroupId, tables.artifactsGroups.id))
.where(and(
usePublicId ? and(
Expand Down

0 comments on commit 9eff788

Please sign in to comment.