From 59c6ce34ea01a4ebac71f92e480091570f67209b Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Thu, 14 Aug 2025 18:54:35 +0200 Subject: [PATCH] make it more consistend --- database/src/queries/user.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/database/src/queries/user.ts b/database/src/queries/user.ts index 30159b620..92ed7a8f8 100644 --- a/database/src/queries/user.ts +++ b/database/src/queries/user.ts @@ -55,8 +55,9 @@ export const findUserByIdentifier = async ( where: { alias: identifier, community: communityWhere }, relations: ['emailContact', 'community'], }) + } else { + // should don't happen often, so we create only in the rare case a logger for it + getLogger(`${LOG4JS_QUERIES_CATEGORY_NAME}.user.findUserByIdentifier`).warn('Unknown identifier type', identifier) } - // should don't happen often, so we create only in the rare case a logger for it - getLogger(`${LOG4JS_QUERIES_CATEGORY_NAME}.user.findUserByIdentifier`).warn('Unknown identifier type', identifier) return null }