mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
change throw new LogError to throw new Error
This commit is contained in:
parent
2dfff70e00
commit
8aa67de124
@ -570,7 +570,7 @@ export class TransactionLinkResolver {
|
||||
} catch (e) {
|
||||
const errmsg = `Error on creating Redeem JWT: error=${e}`
|
||||
methodLogger.error(errmsg)
|
||||
throw new LogError(errmsg)
|
||||
throw new Error(errmsg)
|
||||
}
|
||||
}
|
||||
|
||||
@ -612,19 +612,19 @@ export class TransactionLinkResolver {
|
||||
if (!senderCom) {
|
||||
const errmsg = `Sender community not found with uuid=${senderCommunityUuid}`
|
||||
methodLogger.error(errmsg)
|
||||
throw new LogError(errmsg)
|
||||
throw new Error(errmsg)
|
||||
}
|
||||
const senderFedCom = await DbFederatedCommunity.findOneBy({ publicKey: senderCom.publicKey })
|
||||
if (!senderFedCom) {
|
||||
const errmsg = `Sender federated community not found with publicKey=${senderCom.publicKey}`
|
||||
methodLogger.error(errmsg)
|
||||
throw new LogError(errmsg)
|
||||
throw new Error(errmsg)
|
||||
}
|
||||
const recipientCom = await getCommunityByUuid(recipientCommunityUuid)
|
||||
if (!recipientCom) {
|
||||
const errmsg = `Recipient community not found with uuid=${recipientCommunityUuid}`
|
||||
methodLogger.error(errmsg)
|
||||
throw new LogError(errmsg)
|
||||
throw new Error(errmsg)
|
||||
}
|
||||
const client = DisbursementClientFactory.getInstance(senderFedCom)
|
||||
if (client instanceof V1_0_DisbursementClient) {
|
||||
@ -668,13 +668,13 @@ export class TransactionLinkResolver {
|
||||
if (!senderUser) {
|
||||
const errmsg = `Sender user not found with identifier=${senderGradidoId}`
|
||||
methodLogger.error(errmsg)
|
||||
throw new LogError(errmsg)
|
||||
throw new Error(errmsg)
|
||||
}
|
||||
const recipientUser = await findUserByIdentifier(recipientGradidoId, recipientCommunityUuid)
|
||||
if (!recipientUser) {
|
||||
const errmsg = `Recipient user not found with identifier=${recipientGradidoId}`
|
||||
methodLogger.error(errmsg)
|
||||
throw new LogError(errmsg)
|
||||
throw new Error(errmsg)
|
||||
}
|
||||
if (recipientUser.emailContact?.email !== null) {
|
||||
if (methodLogger.isDebugEnabled()) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user