From 4368530f6e006ea7536ceeb368c2f2d592b39ea1 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Fri, 19 Dec 2025 14:14:20 +0100 Subject: [PATCH] add search for alias and first_name last_name combination --- backend/src/graphql/resolver/util/findContributions.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/graphql/resolver/util/findContributions.ts b/backend/src/graphql/resolver/util/findContributions.ts index 5fad940f5..557dfae2a 100644 --- a/backend/src/graphql/resolver/util/findContributions.ts +++ b/backend/src/graphql/resolver/util/findContributions.ts @@ -66,6 +66,8 @@ export const findContributions = async ( if (relations?.user) { qb.orWhere('user.first_name LIKE :firstName', { firstName: queryString }) .orWhere('user.last_name LIKE :lastName', { lastName: queryString }) + .orWhere('user.alias LIKE :alias', { alias: queryString }) + .orWhere("LOWER(CONCAT(user.first_name, ' ', user.last_name)) LIKE LOWER(:fullName)", { fullName: queryString.toLowerCase() }) .orWhere('emailContact.email LIKE :emailContact', { emailContact: queryString }) .orWhere({ memo: Like(queryString) }) }