relation to emailContact

This commit is contained in:
Moriz Wahl 2023-03-23 11:34:39 +01:00
parent 74d2d43ab2
commit 9d79a92f3f
2 changed files with 1 additions and 2 deletions

View File

@ -157,7 +157,6 @@ export const executeTransaction = async (
} finally {
await queryRunner.release()
}
logger.debug(`prepare Email for transaction received...`)
await sendTransactionReceivedEmail({
firstName: recipient.firstName,
lastName: recipient.lastName,

View File

@ -7,7 +7,7 @@ export const findUserByIdentifier = async (identifier: string): Promise<DbUser |
if (
/^[0-9a-f]{8,8}-[0-9a-f]{4,4}-[0-9a-f]{4,4}-[0-9a-f]{4,4}-[0-9a-f]{12,12}$/.exec(identifier)
) {
user = await DbUser.findOne({ where: { gradidoID: identifier } })
user = await DbUser.findOne({ where: { gradidoID: identifier }, relations: ['emailContact'] })
if (!user) {
throw new LogError('No user found to given identifier', identifier)
}