mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-12 23:35:50 +00:00
remove console logs
This commit is contained in:
parent
82ac1ef282
commit
6a36d9afb2
@ -582,7 +582,6 @@ export class ContributionResolver {
|
||||
|
||||
// acquire lock
|
||||
const releaseLock = await TRANSACTIONS_LOCK.acquire()
|
||||
console.log(`locked for confirmContribution ${id}`)
|
||||
|
||||
const receivedCallDate = new Date()
|
||||
const queryRunner = getConnection().createQueryRunner()
|
||||
@ -643,11 +642,9 @@ export class ContributionResolver {
|
||||
})
|
||||
} catch (e) {
|
||||
await queryRunner.rollbackTransaction()
|
||||
console.log(`Creation was not successful:`, e)
|
||||
throw new Error(`Creation was not successful.`)
|
||||
} finally {
|
||||
await queryRunner.release()
|
||||
console.log(`release for confirmContribution ${id}`)
|
||||
releaseLock()
|
||||
}
|
||||
|
||||
|
||||
@ -170,7 +170,6 @@ export class TransactionLinkResolver {
|
||||
if (code.match(/^CL-/)) {
|
||||
// acquire lock
|
||||
const releaseLock = await TRANSACTIONS_LOCK.acquire()
|
||||
console.log(`locked for redeemTransactionLink ${code}`)
|
||||
logger.info('redeem contribution link...')
|
||||
const now = new Date()
|
||||
const queryRunner = getConnection().createQueryRunner()
|
||||
@ -313,7 +312,6 @@ export class TransactionLinkResolver {
|
||||
throw new Error(`Creation from contribution link was not successful. ${e}`)
|
||||
} finally {
|
||||
await queryRunner.release()
|
||||
console.log(`release for redeemTransactionLink ${code}`)
|
||||
releaseLock()
|
||||
}
|
||||
return true
|
||||
|
||||
@ -66,7 +66,6 @@ export const executeTransaction = async (
|
||||
|
||||
// acquire lock
|
||||
const releaseLock = await TRANSACTIONS_LOCK.acquire()
|
||||
console.log(`locked for executeTransaction ${amount.toString()} ${recipient.firstName}`)
|
||||
|
||||
try {
|
||||
// validate amount
|
||||
@ -190,7 +189,6 @@ export const executeTransaction = async (
|
||||
logger.info(`finished executeTransaction successfully`)
|
||||
return true
|
||||
} finally {
|
||||
console.log(`release for executeTransaction ${amount.toString()} ${recipient.firstName}`)
|
||||
releaseLock()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user