mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
relation to emailContact
This commit is contained in:
parent
74d2d43ab2
commit
9d79a92f3f
@ -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,
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user