try to minimize changeset

This commit is contained in:
Ulf Gebhardt 2023-01-11 13:11:40 +01:00
parent c585b2c234
commit c9488c8b81
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -557,9 +557,8 @@ export class ContributionResolver {
const releaseLock = await TRANSACTIONS_LOCK.acquire()
const clientTimezoneOffset = getClientTimezoneOffset(context)
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`)
throw new Error('Contribution not found to given id or already confirmed.')
}