Skip to content

Commit

Permalink
fix(api): Replace the id with slug in the global-search service (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyobrotoKar authored Sep 22, 2024
1 parent feb1806 commit 74804b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions apps/api/src/workspace/service/workspace.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
})
}

Expand All @@ -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 }
})
}

Expand All @@ -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 }
})
}

Expand All @@ -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 }
})
}

Expand Down
8 changes: 4 additions & 4 deletions packages/api-client/src/types/workspace.types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}[]
Expand Down

0 comments on commit 74804b1

Please sign in to comment.