diff --git a/packages/canyon-backend/src/project/services/get-projects.service.ts b/packages/canyon-backend/src/project/services/get-projects.service.ts index 3501adf3..e1cbb1c5 100644 --- a/packages/canyon-backend/src/project/services/get-projects.service.ts +++ b/packages/canyon-backend/src/project/services/get-projects.service.ts @@ -27,12 +27,12 @@ function parseGitLabUrl(gitLabUrl) { export class GetProjectsService { constructor(private readonly prisma: PrismaService) {} async invoke(current, pageSize, keyword, bu) { - const whereCondition = { + const whereCondition: any = { OR: [ // { description: { contains: keyword } }, // { name: { contains: keyword } }, - { pathWithNamespace: { contains: keyword } }, - { id: { contains: keyword } }, + { pathWithNamespace: { contains: keyword, mode: 'insensitive' } }, + { id: { contains: keyword, mode: 'insensitive' } }, ], };