make it more consistend

This commit is contained in:
einhornimmond 2025-08-14 18:54:35 +02:00
parent 07b837f644
commit 59c6ce34ea

View File

@ -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
}