remove console logs

This commit is contained in:
Moriz Wahl 2022-12-22 14:08:32 +01:00
parent 82ac1ef282
commit 6a36d9afb2
3 changed files with 0 additions and 7 deletions

View File

@ -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()
}

View File

@ -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

View File

@ -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()
}
}