mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
try to minimize changeset
This commit is contained in:
parent
c585b2c234
commit
c9488c8b81
@ -557,9 +557,8 @@ export class ContributionResolver {
|
|||||||
const releaseLock = await TRANSACTIONS_LOCK.acquire()
|
const releaseLock = await TRANSACTIONS_LOCK.acquire()
|
||||||
|
|
||||||
const clientTimezoneOffset = getClientTimezoneOffset(context)
|
const clientTimezoneOffset = getClientTimezoneOffset(context)
|
||||||
|
|
||||||
const contribution = await DbContribution.findOne({ id, confirmedAt: IsNull() })
|
const contribution = await DbContribution.findOne({ id, confirmedAt: IsNull() })
|
||||||
if (!contribution) {
|
if (!contribution) {P
|
||||||
logger.error(`Contribution not found to given id (${id}) or already confirmed`)
|
logger.error(`Contribution not found to given id (${id}) or already confirmed`)
|
||||||
throw new Error('Contribution not found to given id or already confirmed.')
|
throw new Error('Contribution not found to given id or already confirmed.')
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user