Skip to content

Commit

Permalink
feat: ignore case of query
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Feb 2, 2024
1 parent ff5f58c commit 8546b69
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' } },
],
};

Expand Down

0 comments on commit 8546b69

Please sign in to comment.