diff --git a/backend/src/graphql/resolver/TransactionResolver.ts b/backend/src/graphql/resolver/TransactionResolver.ts index c488d8023..a8c77f00d 100644 --- a/backend/src/graphql/resolver/TransactionResolver.ts +++ b/backend/src/graphql/resolver/TransactionResolver.ts @@ -326,7 +326,7 @@ async function sendCoins( const userRepository = getCustomRepository(UserRepository) const recipiantUser = await userRepository.findByPubkeyHex(recipiantPublicKey) - if(recipiantUser && recipiantUser.disabled) { + if (recipiantUser && recipiantUser.disabled) { throw new Error('recipiant user account is disabled') } @@ -338,7 +338,6 @@ async function sendCoins( // no group id is given so we assume it is a local transfer if (!groupId) { - const localTransfer = new proto.gradido.LocalTransfer({ sender: transferAmount, recipiant: fromHex(recipiantPublicKey), @@ -370,8 +369,6 @@ async function sendCoins( ed25519: sign, }) const sigMap = new proto.gradido.SignatureMap({ sigPair: [sigPair] }) - - // process db updates as transaction to able to rollback if an error occure