mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
make things more stable
This commit is contained in:
parent
d50c2fd276
commit
8a68f57569
@ -1172,7 +1172,7 @@ export async function findUserByEmail(email: string): Promise<DbUser> {
|
||||
return dbUser
|
||||
} catch (e) {
|
||||
const logger = createLogger()
|
||||
if (e instanceof EntityNotFoundError) {
|
||||
if (e instanceof EntityNotFoundError || (e as Error).name === 'EntityNotFoundError') {
|
||||
// TODO: discuss if it is ok to print email in log for this case
|
||||
logger.warn(`findUserByEmail failed, user with email=${email} not found`)
|
||||
} else {
|
||||
|
||||
@ -70,7 +70,7 @@ export async function processXComPendingSendCoins(
|
||||
|
||||
const receiverFCom = await DbFederatedCommunity.findOneOrFail({
|
||||
where: {
|
||||
publicKey: receiverCom.publicKey,
|
||||
publicKey: Buffer.from(receiverCom.publicKey),
|
||||
apiVersion: CONFIG.FEDERATION_BACKEND_SEND_ON_API,
|
||||
},
|
||||
})
|
||||
@ -194,7 +194,7 @@ export async function processXComCommittingSendCoins(
|
||||
logger.debug('find pending Tx for settlement:', pendingTx)
|
||||
const receiverFCom = await DbFederatedCommunity.findOneOrFail({
|
||||
where: {
|
||||
publicKey: receiverCom.publicKey,
|
||||
publicKey: Buffer.from(receiverCom.publicKey),
|
||||
|
||||
apiVersion: CONFIG.FEDERATION_BACKEND_SEND_ON_API,
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user