mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix lint
This commit is contained in:
parent
715d51272c
commit
b6bfd55c98
@ -326,7 +326,7 @@ async function sendCoins(
|
|||||||
|
|
||||||
const userRepository = getCustomRepository(UserRepository)
|
const userRepository = getCustomRepository(UserRepository)
|
||||||
const recipiantUser = await userRepository.findByPubkeyHex(recipiantPublicKey)
|
const recipiantUser = await userRepository.findByPubkeyHex(recipiantPublicKey)
|
||||||
if(recipiantUser && recipiantUser.disabled) {
|
if (recipiantUser && recipiantUser.disabled) {
|
||||||
throw new Error('recipiant user account is 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
|
// no group id is given so we assume it is a local transfer
|
||||||
if (!groupId) {
|
if (!groupId) {
|
||||||
|
|
||||||
const localTransfer = new proto.gradido.LocalTransfer({
|
const localTransfer = new proto.gradido.LocalTransfer({
|
||||||
sender: transferAmount,
|
sender: transferAmount,
|
||||||
recipiant: fromHex(recipiantPublicKey),
|
recipiant: fromHex(recipiantPublicKey),
|
||||||
@ -371,8 +370,6 @@ async function sendCoins(
|
|||||||
})
|
})
|
||||||
const sigMap = new proto.gradido.SignatureMap({ sigPair: [sigPair] })
|
const sigMap = new proto.gradido.SignatureMap({ sigPair: [sigPair] })
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// process db updates as transaction to able to rollback if an error occure
|
// process db updates as transaction to able to rollback if an error occure
|
||||||
|
|
||||||
const queryRunner = getConnection().createQueryRunner()
|
const queryRunner = getConnection().createQueryRunner()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user