mirror of
https://github.com/IT4Change/gradido.git
synced 2026-03-01 12:44:43 +00:00
correct receiver email treatment
This commit is contained in:
parent
3c0a4d3332
commit
b152809932
@ -14,6 +14,7 @@ export class SendCoinsResultLoggingView extends AbstractLoggingView {
|
||||
recipFirstName: this.self.recipFirstName?.substring(0, 3),
|
||||
recipLastName: this.self.recipLastName?.substring(0, 3),
|
||||
recipAlias: this.self.recipAlias?.substring(0, 3),
|
||||
recipEmail: this.self.recipEmail?.substring(0, 3),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -169,7 +169,6 @@ export async function processXComCompleteTransaction(
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
await sendTransactionReceivedEmail({
|
||||
firstName: foreignUser.firstName,
|
||||
lastName: foreignUser.lastName,
|
||||
@ -194,8 +193,6 @@ export async function processXComCompleteTransaction(
|
||||
transactionMemo: memo,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
} catch (err) {
|
||||
const errmsg =
|
||||
@ -512,7 +509,7 @@ export async function processXComCommittingSendCoins(
|
||||
}
|
||||
sendCoinsResult.recipGradidoID = pendingTx.linkedUserGradidoID
|
||||
sendCoinsResult.recipAlias = recipient.recipAlias
|
||||
sendCoinsResult.recipEmail = recipient.recipEmail
|
||||
sendCoinsResult.recipEmail = recipient.recipEmail
|
||||
}
|
||||
} catch (err) {
|
||||
methodLogger.error(
|
||||
|
||||
@ -40,16 +40,17 @@ export async function storeForeignUser(
|
||||
foreignUser = await DbUser.save(foreignUser)
|
||||
|
||||
logger.debug('new foreignUser inserted:', foreignUser)
|
||||
let foreignUserEmail = DbUserContact.create()
|
||||
foreignUserEmail.email = committingResult.recipEmail!
|
||||
foreignUserEmail.emailChecked = true
|
||||
foreignUserEmail.user = foreignUser
|
||||
foreignUserEmail = await DbUserContact.save(foreignUserEmail)
|
||||
logger.debug('new foreignUserEmail inserted:', foreignUserEmail)
|
||||
|
||||
foreignUser.emailContact = foreignUserEmail
|
||||
foreignUser.emailId = foreignUserEmail.id
|
||||
foreignUser = await DbUser.save(foreignUser)
|
||||
if (committingResult.recipEmail !== null) {
|
||||
let foreignUserEmail = DbUserContact.create()
|
||||
foreignUserEmail.email = committingResult.recipEmail!
|
||||
foreignUserEmail.emailChecked = true
|
||||
foreignUserEmail.user = foreignUser
|
||||
foreignUserEmail = await DbUserContact.save(foreignUserEmail)
|
||||
logger.debug('new foreignUserEmail inserted:', foreignUserEmail)
|
||||
foreignUser.emailContact = foreignUserEmail
|
||||
foreignUser.emailId = foreignUserEmail.id
|
||||
foreignUser = await DbUser.save(foreignUser)
|
||||
}
|
||||
|
||||
return foreignUser
|
||||
} else if (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user