diff --git a/backend/src/graphql/resolver/TransactionLinkResolver.ts b/backend/src/graphql/resolver/TransactionLinkResolver.ts index 56c0db4c4..28c3b432c 100644 --- a/backend/src/graphql/resolver/TransactionLinkResolver.ts +++ b/backend/src/graphql/resolver/TransactionLinkResolver.ts @@ -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()) {