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) {
|
} catch (e) {
|
||||||
const errmsg = `Error on creating Redeem JWT: error=${e}`
|
const errmsg = `Error on creating Redeem JWT: error=${e}`
|
||||||
methodLogger.error(errmsg)
|
methodLogger.error(errmsg)
|
||||||
throw new LogError(errmsg)
|
throw new Error(errmsg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -612,19 +612,19 @@ export class TransactionLinkResolver {
|
|||||||
if (!senderCom) {
|
if (!senderCom) {
|
||||||
const errmsg = `Sender community not found with uuid=${senderCommunityUuid}`
|
const errmsg = `Sender community not found with uuid=${senderCommunityUuid}`
|
||||||
methodLogger.error(errmsg)
|
methodLogger.error(errmsg)
|
||||||
throw new LogError(errmsg)
|
throw new Error(errmsg)
|
||||||
}
|
}
|
||||||
const senderFedCom = await DbFederatedCommunity.findOneBy({ publicKey: senderCom.publicKey })
|
const senderFedCom = await DbFederatedCommunity.findOneBy({ publicKey: senderCom.publicKey })
|
||||||
if (!senderFedCom) {
|
if (!senderFedCom) {
|
||||||
const errmsg = `Sender federated community not found with publicKey=${senderCom.publicKey}`
|
const errmsg = `Sender federated community not found with publicKey=${senderCom.publicKey}`
|
||||||
methodLogger.error(errmsg)
|
methodLogger.error(errmsg)
|
||||||
throw new LogError(errmsg)
|
throw new Error(errmsg)
|
||||||
}
|
}
|
||||||
const recipientCom = await getCommunityByUuid(recipientCommunityUuid)
|
const recipientCom = await getCommunityByUuid(recipientCommunityUuid)
|
||||||
if (!recipientCom) {
|
if (!recipientCom) {
|
||||||
const errmsg = `Recipient community not found with uuid=${recipientCommunityUuid}`
|
const errmsg = `Recipient community not found with uuid=${recipientCommunityUuid}`
|
||||||
methodLogger.error(errmsg)
|
methodLogger.error(errmsg)
|
||||||
throw new LogError(errmsg)
|
throw new Error(errmsg)
|
||||||
}
|
}
|
||||||
const client = DisbursementClientFactory.getInstance(senderFedCom)
|
const client = DisbursementClientFactory.getInstance(senderFedCom)
|
||||||
if (client instanceof V1_0_DisbursementClient) {
|
if (client instanceof V1_0_DisbursementClient) {
|
||||||
@ -668,13 +668,13 @@ export class TransactionLinkResolver {
|
|||||||
if (!senderUser) {
|
if (!senderUser) {
|
||||||
const errmsg = `Sender user not found with identifier=${senderGradidoId}`
|
const errmsg = `Sender user not found with identifier=${senderGradidoId}`
|
||||||
methodLogger.error(errmsg)
|
methodLogger.error(errmsg)
|
||||||
throw new LogError(errmsg)
|
throw new Error(errmsg)
|
||||||
}
|
}
|
||||||
const recipientUser = await findUserByIdentifier(recipientGradidoId, recipientCommunityUuid)
|
const recipientUser = await findUserByIdentifier(recipientGradidoId, recipientCommunityUuid)
|
||||||
if (!recipientUser) {
|
if (!recipientUser) {
|
||||||
const errmsg = `Recipient user not found with identifier=${recipientGradidoId}`
|
const errmsg = `Recipient user not found with identifier=${recipientGradidoId}`
|
||||||
methodLogger.error(errmsg)
|
methodLogger.error(errmsg)
|
||||||
throw new LogError(errmsg)
|
throw new Error(errmsg)
|
||||||
}
|
}
|
||||||
if (recipientUser.emailContact?.email !== null) {
|
if (recipientUser.emailContact?.email !== null) {
|
||||||
if (methodLogger.isDebugEnabled()) {
|
if (methodLogger.isDebugEnabled()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user