diff --git a/apps/api/src/workspace/service/workspace.service.ts b/apps/api/src/workspace/service/workspace.service.ts index 5fffa44a..2a7ec59d 100644 --- a/apps/api/src/workspace/service/workspace.service.ts +++ b/apps/api/src/workspace/service/workspace.service.ts @@ -442,7 +442,7 @@ export class WorkspaceService { { description: { contains: searchTerm, mode: 'insensitive' } } ] }, - select: { id: true, name: true, description: true } + select: { slug: true, name: true, description: true } }) } @@ -467,7 +467,7 @@ export class WorkspaceService { { description: { contains: searchTerm, mode: 'insensitive' } } ] }, - select: { id: true, name: true, description: true } + select: { slug: true, name: true, description: true } }) } @@ -493,7 +493,7 @@ export class WorkspaceService { { note: { contains: searchTerm, mode: 'insensitive' } } ] }, - select: { id: true, name: true, note: true } + select: { slug: true, name: true, note: true } }) } @@ -518,7 +518,7 @@ export class WorkspaceService { { note: { contains: searchTerm, mode: 'insensitive' } } ] }, - select: { id: true, name: true, note: true } + select: { slug: true, name: true, note: true } }) } diff --git a/packages/api-client/src/types/workspace.types.d.ts b/packages/api-client/src/types/workspace.types.d.ts index c1d60b61..8737417f 100644 --- a/packages/api-client/src/types/workspace.types.d.ts +++ b/packages/api-client/src/types/workspace.types.d.ts @@ -96,22 +96,22 @@ export interface GlobalSearchRequest { export interface GlobalSearchResponse { projects: { - id: string + slug: string name: string description: string }[] environments: { - id: string + slug: string name: string description: string }[] secrets: { - id: string + slug: string name: string note: string }[] variables: { - id: string + slug: string name: string note: string }[]